Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
End-of-File processing z/OS TSO/E CLISTs SA32-0978-00 |
|
Whenever a CLIST performs I/O, include code that handles end-of-file conditions. In a CLIST, end-of-file causes an error condition (error code 400). To process this condition, provide an error routine before the code that performs the I/O. An error routine is a block of code that gets control when an error occurs in a CLIST. The error routine can try to identify the error (such as error code 400) and take appropriate action. For a complete description of how to write an error routine, see Writing ATTN and ERROR routines. The following error routine saves the value of &LASTCC, closes
and frees the open file, and branches to a statement that determines
whether end-of-file was reached.
|
Copyright IBM Corporation 1990, 2014
|