Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Opening QSAM files

Before your program can use any READ, WRITE, or REWRITE statements to process records in a file, it must first open the file with an OPEN statement.

An OPEN statement works if both of the following conditions are true:

Code CLOSE WITH LOCK so that the file cannot be opened again while the program is running.

Use the REVERSED option of the OPEN statement to process tape files in reverse order. The file is positioned at the end, and READ statements read the data records in reverse order, starting with the last record. The REVERSED option is supported only for files that have fixed-length records.

related references  
OPEN statement (Enterprise COBOL Language Reference)


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)