COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Table 49 I-O Status Codes Augmented by GUARDIAN-ERR
Cause of Status CodeCOBOL Statement(s)GUARDIAN-ERR ValueStatus Code
Operation was successfulAll0“00”
Read from $RECEIVE and
system message was read.
READ sequential6
Operation was still
successful
Record on file shorter than
expected
READ0“04”
Open for INPUT, I-O, or
EXTEND—OPTIONAL
OPEN11“05”
specified and file does not
exist
Open for INPUT, I-O, or
EXTEND—OPTIONAL
OPEN14
specified and device does
not exist for a temporary file
Insufficient memory for
HP COBOL Fast I-O
OPEN0“07”
NO REWIND on a device
that is not a tape
CLOSE NO REWIND, OPEN
NO REWIND
0
REEL/UNIT on a device that
is not a tape
CLOSE REEL0
End of fileREAD sequential1“10”
Sequence violationWRITE (indexed file)0“21”
Record does not existREWRITE with sequential
access
11
Relative key out of boundsREWRITE with sequential
access
23
Invalid key specifiedREWRITE with sequential
access
46
Alternate key without
duplicates already exists
REWRITE10“22”
Record already existsWRITE10
The position not as expectedREAD random (relative file)0“23”
On an optional file that is
missing or record at that
position not desired one
START0
Record not found before
EOF
START1
Record does not exist or
relative file has reached end
READ random (relative or
indexed file)
1
Record does not existDELETE, READ random,
REWRITE
11
Relative key out of boundsDELETE, READ random,
REWRITE, START
23
Invalid key specifiedDELETE, READ random,
REWRITE, START
46
Relative key out of boundsWRITE23“24”
252 Procedure Division










