How to Handle Recovery and Duplicate Protection

You are responsible for the synchronization of recovery and duplicate protection logic in your NOF programs.

Duplicate Transactions

You can test for duplicate transactions sent to the NOF program from your application.

On receipt of a message from the application, store the GL-MSG-UNIQUE value for each station, (possibly in the station table). If the value of GL-MSG-UNIQUE is the same as the previous GL-MSG-UNIQUE value for that station, the message is a duplicate transaction. You must also consider AUTO-CNT, since a transaction might perform more than one Automatic Entry.

In addition, your external stations should not send further input until they have received a successful response to their previous input.

Recovery

If synchronized recovery is required, you must provide logic in your NOF program to perform the following:

After the recovery process, your NOF program should perform the following:

  1. Interrogate the Memo Ispec to identify the last transaction successfully processed for each station. Identify the last serial number processed.

  2. Read the table maintained by the NOF program and resubmit each transaction, commencing after the last valid serial number.