Professional Documents
Culture Documents
COBOL File Status
COBOL File Status
COBOL File Status
m
WRITE alternate record key for which duplicates
are allowed.
.co
04 READ All All Successful operation, but the size of the
record just read does not agree with the size
specified in the program.
ES
05 OPEN All All Successful operation, but the referenced
optional file was not present when the
statement executed. (if the open mode was
I-O or EXTEND, the file was created.)
M
07 CLOSE All All Successful operation, but the referenced file
is not on a reel-type device. The
OPEN
A NOREWIND, REEL/UNIT or FOR
REMOVAL options of the CLOSE
statement are overlooked, or the
FR
REWRITE Relative Sequential relative key (for a relative file) was not the
same as the last record read.
WRITE Indexed Sequential
Operation failed because the prime record
Indexed key value changed between the previous
successful READ and the current
REWRITE operation.
Operation failed because the prime record
key value was not greater than that of the
last record written. (Prime record key
values must be in ascending order.)
22 REWRITE Indexed All Operation failed because it would have
created a duplicate alternate record key
WRITE Indexed All when duplicates are not allowed.
m
Relative Random Operation failed because a duplicate prime
or record key, or a duplicate alternate record
.co
key when duplicates are not allowed, would
Dynamic have been created.
ES
relative key would have been created.
23 DELETE Indexed or Random Operation failed because the record key
or (prime or alternate for indexed file, relative
M
READ Relative key for relative files) was not found or an
Dynamic optional file was not present.
REWRITE Indexed or
A
Sequential Operation failed because the record key
START Relative or (prime or alternate for indexed files,
FR
relative key for relative files) was found, or
Dynamic an optional file was not present.
24 WRITE Indexed or All Operation failed because an attempt was
IN
m
39 OPEN All All Operation failed because an attempt was
made to open a file whose fixed file
.co
attributes do not match the ones specified in
the program. (Attributes that are checked
are organisation, index keys (prime and
alternate), block size, and maximum record
ES
size.)
41 OPEN All All Operation failed because an attempt was
made to open a file that was already open.
M
42 CLOSE All All Operation failed because an attempt was
A made to close a file that was not open.
43 DELETE All Sequential Operation failed because an attempt was
made to delete or rewrite a record without a
FR
REWRITE prior successful READ for the record.
44 REWRITE All All Operation failed because an attempt was
made to rewrite a record whose size is not
the same as the record being replaced.
IN
mode.
48 WRITE All All Operation failed because an attempt was
made to write to an unopen file, or to a file
IB