Skip to main content

Problem:

CALL "CBL_READ_FILE" using ....

returns a RETURN-CODE = 12592

What does it mean?

Resolution:

It is a 2 bytes file status code in decimal representation.

12592 decimal = x"3130" in hex.

x"3130" are the ASCII-Codes of "1" and "0".

12592 means FS: 1/0 = no next logical record exists.

-------------------------------------------

Also extended file status codes might be returned from CBL_-routines.

If you recieve e.g. 14657 = x"3941",  it means ASCII "9" followed by a binary "41" = decimal 65.

14657 means FS: 9/65 = file locked

Old KB# 3956

#ServerExpress
#COBOL
#AcuCobol
#netexpress
#RMCOBOL