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

Cobol error codes

The document lists various COBOL error codes along with their corresponding meanings. Each code indicates a specific issue encountered during file operations, such as successful execution, duplicate keys, and file access errors. The codes range from 00 for success to 99 for record locking issues.

Uploaded by

nagarajuchalla97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Cobol error codes

The document lists various COBOL error codes along with their corresponding meanings. Each code indicates a specific issue encountered during file operations, such as successful execution, duplicate keys, and file access errors. The codes range from 00 for success to 99 for record locking issues.

Uploaded by

nagarajuchalla97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as 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

04 → length of the record read differs from variables defined in pgm

06 → write operation on file opened in input mode

08 → read operation on file opened in output mode

10 → end of file

12 → attempt to open file already opened

13 → no next logical record / trying to read empty file

18 → Read error, end of record / file open in wrong mode

19 → rewrite error, open mode or access mode wrong

22 → duplicate key while writing or rewriting

23 → record not found

35 →file not found

37 → open mode was specified which was not supported by the file

38 → open operation on locked file

39 → open error, fixed file attributes mismatch

41 →open operation on already opened file

42 → close operation on already closed /never opened file

43 → rewrite or delete operation on record before reading

44 → write/ re write operation , but rec size missmatch

46 → sequesntional read was performed bur previous read was unsuccessful

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

93 → file already under exculsive control (or) resource NA (or) insufficient storage no more
extents

97 → file not closed by previous job

99 → rec locked by other user access failed

You might also like