COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Effect
The OPEN statement is unsuccessful with I-O status code “30.
Recovery
Type ERROR nnn to see the meaning of the Guardian error; it might indicate corrective action.
172
OPEN on a nonexistent file and alternate keys specified
Cause
A file with alternate keys specified does not exist when the attempt is made to open it. The file
must have been created with a FUP CREATE or other means before it can be opened.
Effect
The OPEN statement is unsuccessful with I-O status code “30.
Recovery
Create the file correctly before running the program, assign the correct file, or remove the
alternate key specifications.
173
Indexed file not defined as ORGANIZATION INDEXED
Cause
The file assigned is an indexed (key sequenced) file, but the COBOL loadfile description does
not specify ORGANIZATION INDEXED.
Effect
The OPEN statement is unsuccessful with I-O status code “39.
Recovery
Assign the correct file or correct the file description in the program.
174
OPEN INPUT when file not on input device
Cause
A file is being opened for INPUT, but the device assigned is an illegal device or an output-only
device (such as a printer).
Effect
The OPEN statement is unsuccessful with I-O status code “37.
Recovery
Assign the correct device or file.
175
Operation other than OPEN on file that is not open
Effect
The program attempted an operation other than OPEN (such as READ or WRITE) on a file that
is not open.
Effect
The statement is unsuccessful with I-O status code “4x where x is appropriate for the statement.
Recovery
Correct the program.
1208 Run-Time Diagnostic Messages