*EOFFLAG (KEYIN)
9.3
*EOFFLAG
When this control is executed, a program's KEYIN instruction sets the EQUAL flag when it detects that the standard input has failed. This control remains in affect until an *EOFOFF is executed. When this control is in affect, the EQUAL flag is automatically cleared when a KEYIN instruction is executed.
Note:
The *EOFOFF and *EOFFLAG modes are mutually exclusive. When one mode is activated, the other mode is automatically canceled. The *EOFOFF must be used to cancel either mode.
If these controls are used in a program, the application program must be aware that the KEYIN now affects the EQUAL flag.
The implementation of these controls is to address a situation where a program continued to execute after a Telnet client session was terminated prematurely.
See Also: List Controls (KEYIN Only)
![]() |