Thursday, 16 May 2013

FAQ File handling error codes in COBOL

1      when at END condition fails

10  - end of file

2      This error will occur when Index key Fails

22  - Duplicate key
23  - Record not found

3      permanent Open Error Occurs

35  - Open statement attempted on a non-optional file that was not present.
37  - Open statement attempted on a file that would not support open mode.
39  - Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL.

4      Logic Error in Opening / Closing / Deleting etc 

42  - A CLOSE was attempted for a file not in the open mode.
47  - A READ was attempted for a file not open in the input or I-O mode.
48  - A WRITE was attempted on a file not open in the I-O, output, or extend mode.

9      Implementator Defined

92  - Logic error
93  - VSAM resource not available


No comments:

Post a Comment

Expense Handler Application with advance technologies

Budget Planner  One of the application developed with Ionic 4 and Python-Flask.  Ionic 4 code:  https://github.com/logeshbuiltin/Expense...