0% found this document useful (0 votes)
20 views

Cobol error codes

The document lists various COBOL error codes along with their meanings, categorized into different types of issues such as successful operations, file access errors, and record length mismatches. Each error code is associated with a specific problem that may occur during file operations, such as reading, writing, or opening files. The codes range from successful completion (00) to various failure scenarios, including locked files (99) and mismatched record lengths (04).

Uploaded by

nagarajuchalla97
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Cobol error codes

The document lists various COBOL error codes along with their meanings, categorized into different types of issues such as successful operations, file access errors, and record length mismatches. Each error code is associated with a specific problem that may occur during file operations, such as reading, writing, or opening files. The codes range from successful completion (00) to various failure scenarios, including locked files (99) and mismatched record lengths (04).

Uploaded by

nagarajuchalla97
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Cobol error codes

00  successful
02  duplicate key found in alternate key
10  end of file
23  record not found
35 file not found
93  file already under exculsive control (or) resource NA (or) insufficient
storage no more extents
99  rec locked by other user access failed

Both open and Read/Write/Rewrite/delete issues


06  write operation on file opened in input mode
08  read operation on file opened in output mode
19  rewrite error, open mode or access mode wrong
47  read / start operation performed on file not opened in input or i-o mode
48 -> write operation performed on file not opened in output or i-o mode
49  delete / rewrite operation performed on file not opened in i-o mode or file
not opened

Lrecl missmatch
04  length of the record read differs from variables defined in pgm
39  open error, fixed file attributes mismatch
44  write/ re write operation , but rec size mismatch

Write/read/rewrite/delete issues
13  no next logical record / trying to read empty file
18  Read error, end of record
22  duplicate key while writing or rewriting
43  rewrite or delete operation on record before reading
46  sequesntional read was performed bur previous read was unsuccessful

File open issues


37  open mode was specified which was not supported by the file
38  open operation on locked file
12 /41 open operation on already opened file
42  close operation on already closed /never opened file

97  file not closed by previous job

You might also like