HP OpenVMS Systemsask the wizard |
The Question is: Where do I locate COBOL file status error codes? The Answer is :
See the Compaq COBOL Reference Manual, Appendix C - File Status
Values.
Also, the online help lists those file status values impacted
by the /STANDARD qualifier:
$ help cobol /standard
COBOL
/STANDARD
...
b. I-O file status values
If you specify /STANDARD=V3, you receive the file status values
listed in the left-hand column, labeled V3.
If you specify /STANDARD=85, you receive the file status values
listed in the right-hand column, labeled 85.
The following table explains the I-O error conditions and lists the
corresponding file status values for the /STANDARD qualifier using
the V3 and 85 options.
__________________________________________________________________
I-O File Status Values for the /STANDARD Qualifier
__________________________________________________________________
I-O Error Condition Status Value
________________________
V3 85
__________________________________________________________________
READ successful -- detected alternate
duplicate key. 00 02
READ successful -- record shorter than
fixed file attribute. 00 04
CLOSE reel/unit attempted on nonreel/unit
device. 00 07
READ fails -- relative key digits exceed
relative key. 00 14
WRITE fails -- relative key digits exceed
relative key. 00 24
OPEN I-O on file that is not mass storage. 00 37
WRITE fails -- attempt to write a record
of a different size than in the file
description. 00 44
READ fails -- no next logical record
(EOF detected). 13 10
READ fails -- no next logical record
(EOF on OPTIONAL file). 15 10
READ fails -- no valid next record
(already at EOF). 16 10
READ NEXT or sequential READ -- no valid
next record pointer. 16 46
READ or START fails -- optional input
file not present. 25 23
READ successful -- record longer than
fixed file attribute. 30 04
OPEN on relative or indexed file that
is not mass storage. 30 37
REWRITE fails -- attempt to rewrite
record of different size. 30 44
CLOSE fails -- file not currently open. 94 42
DELETE or REWRITE fails -- previous I-O
not successful READ. 93 43
OPEN fails -- file previously closed with
LOCK. 94 38
OPEN fails -- file created with different
organization. 94 39
OPEN fails -- file created with different
prime record key. 94 39
OPEN fails -- file created with different
alternate record keys. 94 39
OPEN fails -- file currently open. 94 41
READ or START fails -- file not opened
INPUT or I-O. 94 47
WRITE fails -- file not opened OUTPUT,
EXTEND, or I-O. 94 48
DELETE or REWRITE fails -- file not
opened I-O. 94 49
OPEN INPUT on a nonoptional file -- file
not found. 97 35
__________________________________________________________________
|