|
Key
|
Dialect
|
Description
|
| 1 |
2 |
74 |
85 |
F
U |
O
S |
V
S |
M
F |
R
M |
|
| 0 |
Successful
completion codes |
| 0 |
0 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
No further information |
| 0 |
0 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
Duplicate
key detected |
| 0 |
4 |
|
4 |
4 |
|
4 |
4 |
4 |
Record
length does not conform to fixed file attributes |
| 0 |
5 |
|
4 |
4 |
|
4 |
4 |
4 |
File
not present (for optional file) |
| 0 |
7 |
|
4 |
4 |
|
4 |
4 |
4 |
File
is a non-reel/unit medium but referenced as if it were |
| 1 |
At
end conditions (unsuccessful completion) |
| 1 |
0 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
End of file on
sequential READ or optional file not present |
| 1 |
4 |
|
4 |
4 |
|
4 |
4 |
4 |
Relative record
number larger than relative key |
| 2 |
Invalid
key conditions (unsuccessful completion) |
| 2 |
0 |
|
|
|
|
|
|
|
|
| 2 |
1 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
Key sequence
error |
| 2 |
2 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
Duplicate key
error |
| 2 |
3 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
Record does not
exist |
| 2 |
4 |
|
4 |
4 |
|
4 |
4 |
4 |
Boundary violation
(relative and indexed files) |
| 3 |
Permanent
error conditions (unsuccessful completion) |
| 3 |
0 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
No further information |
| 3 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
4 |
Boundary violation
(sequential file) |
| 3 |
5 |
|
4 |
4 |
|
4 |
4 |
4 |
File not present |
| 3 |
7 |
|
4 |
4 |
|
4 |
4 |
4 |
OPEN mode not
supported by specified file |
| 3 |
8 |
|
4 |
4 |
|
4 |
4 |
4 |
OPEN attempted
on file closed with lock |
| 3 |
9 |
|
4 |
4 |
|
4 |
4 |
4 |
Conflict between
fixed and defined file attributes |
|
Status
Key
|
Description
|
NetCOBOL
Equivalent Status
|
| 1 |
2 |
|
|
| 9
9
9
|
0*
3
6**
|
OPEN
on a non-OPTIONAL file that is not present.
*QSAM designation.
**VSAM designation.
|
3-5 |
| 9 |
0 |
OPEN
statement attempted on a file that would not support the open mode
specified |
3-7 |
| 9 |
2 |
OPEN
statement attempted on a file previously closed with a lock. |
3-8 |
9
9
|
0*
5**
|
OPEN
unsuccessful because a conflict was detected between the fixed file
attributes and the attributes specified for that file in the program.
*QSAM designation.
**VSAM designation.
|
3-9 |
| 9 |
2 |
OPEN
attempted for a file in the open mode. |
4-1 |
| 9 |
2 |
CLOSE
attempted for a file that was already closed.. |
4-2 |
| 9 |
2 |
REWRITE
or DELETE without a preceding successful READ. |
4-3 |
| 9 |
2 |
Boundary
violation. |
4-4 |
| 9
9
|
2*
4**
|
READ
with no valid next record
*QSAM designation.
**VSAM designation.
|
4-6 |
| 9 |
2 |
READ
attempted on a file not open in the input or I-O mode. |
4-7 |
| 9 |
2 |
WRITE
attempted on a file not open in the I-O, output, or extend mode. |
4-8 |
| 9 |
2 |
DELETE
or REWRITE statement on a file not open in the I-O mode. |
4-9 |
|
Status
Key
|
Description
|
NetCOBOL
Equivalent Status
|
| 1 |
2 |
|
|
| 9 |
001 |
Insufficient
buffer space |
|
| 9 |
002 |
File
not open when access attempted |
4-2,
4-7, 4-8, or 4-9 |
| 9 |
003 |
Serial
mode error |
|
| 9 |
004 |
Illegal
file name |
9-1 |
| 9 |
005 |
Illegal
device specification |
9-1 |
| 9 |
006 |
Attempt
to write to a file opened for input |
4-8
or 4-9 |
| 9 |
007 |
Disk
space exhausted |
Sequential
files 3-4,
Indexed files
9-0 (If run-time errors are switched on "DISK SPACE EXHAUSTED" is
displayed)
Relative files
2-4
|
| 9 |
008 |
Attempt
to input from a file opened for output |
4-7 |
| 9 |
009 |
No
room in directory or directory does not exist |
9-1 |
| 9 |
010 |
File
name not supplied |
9-1 |
| 9 |
012 |
Attempt
to open a file which is already open |
4-1 |
| 9 |
013 |
File
not found |
9-1 |
| 9 |
014 |
Too
many files opened simultaneously |
? |
| 9 |
015 |
Too
many indexed files open |
? |
| 9 |
016 |
Too
many devices open |
? |
| 9 |
017 |
Record
error: probably zero length |
Possibly
will report 1-0 |
| 9 |
018 |
Read
part record error: EOF before EOR or file open in wrong mode |
Not
reported |
| 9 |
019 |
Rewrite
error: open mode or access mode wrong |
4-9 |
| 9 |
020 |
Device
or resource busy |
? |
| 9 |
021 |
File
is a directory |
9-0 |
| 9 |
022 |
Illegal
or impossible access mode for OPEN |
3-7 |
| 9 |
023 |
Illegal
or impossible access mode for CLOSE |
Not
clear when this would be generated |
| 9 |
024 |
Disk
I/O error |
Not
reported (?) |
| 9 |
025 |
Operating
system data error |
Not
reported (?) |
| 9 |
026 |
Block
I/O error |
Not
reported (?) |
| 9 |
027 |
Device
not available |
9-1 |
| 9 |
028 |
No
space on device |
Sequential
files 3-4,
Indexed files
9-0 (If run-time errors are switched on "DISK SPACE EXHAUSTED" is
displayed)
Relative files
2-4
|
| 9 |
029 |
Attempt
to delete open file |
DELETE
file not supported |
| 9 |
030 |
File
system is read only |
9-0 |
| 9 |
031 |
Not
owner of file |
?
(UNIX only) |
| 9 |
032 |
Too
many indexed files, or no such process |
? |
| 9 |
033 |
Physical
I/O error |
3-0
(disk not in drive) |
| 9 |
034 |
Incorrect
mode or file descriptor |
4-7,
or 4-8 |
| 9 |
035 |
Attempt
to access a file with incorrect permission |
9-0 |
| 9 |
036 |
File
already exists |
Probably
4-8 |
| 9 |
037 |
File
access denied |
9-0 |
| 9 |
038 |
Disk
not compatible |
? |
| 9 |
039 |
File
not compatible |
Not
reported, or may be reported as an invalid key (2-3) or other record
format mismatch depending on the type of incompatibility. |
| 9 |
040 |
Language
initialization not set up correctly |
Not
applicable. |
| 9 |
041 |
Corrupt
index file |
Depends
on type of corruption. May return 2-3 |
| 9 |
042 |
Attempt
to write on broken pipe |
N/A
? |
| 9 |
043 |
File
information missing for indexed file |
N/A
? |
| 9 |
045 |
Attempt
to open an NLS file using an incompatible program |
N/A
? |
| 9 |
047 |
Indexed
structure overflow |
N/A
? |
| 9 |
065 |
File
locked |
9-3 |
| 9 |
066 |
Attempt
to add duplicate record key to indexed file |
2-2 |
| 9 |
067 |
Indexed
file not open |
4-7
or 4-8 |
| 9 |
068 |
Record
locked |
N/A
(no record locking) |
| 9 |
069 |
Illegal
argument to ISAM module |
N/A
? |
| 9 |
070 |
Too
many indexed files open |
<<Ask
what is expected to happen>> |
| 9 |
071 |
Bad
indexed file format |
N/A
(internal system error) |
| 9 |
072 |
End
of indexed file |
N/A
(internal system error) |
| 9 |
073 |
No
record found in indexed file |
N/A
(internal system error) |
| 9 |
074 |
No
current record in indexed file |
N/A
(internal system error) |
| 9 |
075 |
Indexed
data file name too long |
N/A
(doesn't create another file name) |
| 9 |
077 |
Internal
ISAM module failure |
N/A
(internal system error) |
| 9 |
078 |
Illegal
key description in indexed file |
N/A
(internal system error) |
| 9 |
081 |
Key
already exists in indexed file |
N/A
(internal system error) |
| 9 |
100 |
Invalid
file operation |
4-3
or 4-9 |
| 9 |
101 |
Illegal
operation on an indexed file |
N/A
(internal system error) |
| 9 |
102 |
Sequential
file with non-integral number of records |
Not
reported |
| 9 |
104 |
Null
file name used in a file operation |
9-1 |
| 9 |
105 |
Memory
allocation error |
? |
| 9 |
129 |
Attempt
to access record zero of relative file |
2-3
or 2-4 |
| 9 |
135 |
File
must not exist |
9-1 |
| 9 |
138 |
File
closed with lock - cannot be opened |
3-8 |
| 9 |
139 |
Record
length or key data inconsistency |
3-9 |
| 9 |
141 |
File
already open - cannot be opened |
4-1 |
| 9 |
142 |
File
not open - cannot be closed |
4-2 |
| 9 |
143 |
REWRITE/DELETE
in sequential mode not preceded by successful READ |
4-3 |
| 9 |
|