Use this file- or record-level keyword to specify an end of session function. To end a session, your program issues a write operation with the EOS keyword in effect.
This keyword has no parameters.
The EOS keyword must have an option indicator when it applies to a record for which any of the following keywords apply:
ALWWRT |
EVOKE |
NEGRSP |
At run time, data fields and these keywords are ignored when the EOS keyword is in effect. If an EOS keyword with no option indicator applies to a record for which any of these keywords apply, error messages are issued and these keywords are ignored at creation time. If an EOS keyword with no option indicator applies to a record with data fields, a severe error is issued and the file is not created.
You cannot specify EOS with the TIMER keyword.
Option indicators are valid for this keyword. When you specify this keyword at the file level, you should specify an option indicator.
The following example shows how to specify the EOS keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A 01 EOS A R RCD A
If indicator 01 is on and the program does an output operation, the session will be ended.