Sequential files can be read from the following device types:
Sequential files can only be read in sequential access mode.
The record that is made available by the READ statement is determined as follows:
If SELECT OPTIONAL is specified in the file-control entry for this file and the file is not available when this program runs, processing of the first READ statement causes an AT END condition. Since the file is not available, the standard system end-of-file processing is not done when the file is closed.
Related Information:
If end of volume is recognized during processing of a READ statement and logical end of file has not been reached, the following actions are taken in the order listed:
The program receives no indication that the above actions occurred during the read operation.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.