Vsam or flat file status code 39.

Community Help: File Status 39 - Cobol file status code lookup and help

Share your own experience     View front page

If you are getting an error code 39 returned when accessing a file via cobol batch, it probably reads something like this: A file attribute mismatch was detected. File "name" in program "name" had a file specified in the ASSIGN clause had a record length of 1600. There was an unsuccessful OPEN or CLOSE of file "name" in program "name" at relative location X'17EE'. Neither FILE STATUS nor an ERROR declarative were specified. The status code was 39. From compile unit "name" at entry point TESTPROG at compile unit offset +000017EE at entry offset +000017EE at address 24A557EE.

The file status code 39 is returned when the file i-o result was that an error occurred when an attempt was made to read or access a file. This error is most likely caused because the file length was different then what you defined in the cobol program.