Processing flow
The standard program is called from applications that must start again.
The application programs pass this parameter list to the standard program:
- Request code
- Return code
- Data structure name (the contents of the notify object)
Request codes perform the following operations:
- R (Read)
Retrieves the last record added to the notify object with the same key. The return code is set as:
- 0
- No record is available (no start again required).
- 1
- Record returned in the information field for starting again (start again required).
- WA (Write)
Writes a record to the file. This code can be used if you use a notify object for your own purposes. For example, if the program determines that the transaction needs to be started again, the program can write a record to the notify object to simulate what the system will do if a job or the system fails.
- DE (Delete)
Deletes all records in the notify object with the same key. The return code is set as:
- 0
- No records exist to be deleted.
- 1
- One or more records were deleted.
- OE (Open)
The O request code is optional and is used to avoid having to start the processing program each time it is called.
- CA (Close)
After the open request code is used, using the close request code ensures that the file is closed.
- SA (Search)
Returns the last record for this user. The program name is not used. This code can be used in an initial program to determine whether starting again is required.
Parent topic:
Example: Code for a standard processing program