Page 1 of 1

File status 44 in cobol

PostPosted: Fri Nov 27, 2009 5:58 am
by ganesh.b
I m receiving the file status 44 error while running a job.

The input and output are not vsam but the files are of "Variable" length.

Following is the exact error message i receive in my sysout.

A logic error occurred. Neither FILE STATUS nor a declarative was specified for
"program name" at relative location X'32FC'. The status code was 44.
From compile unit "program name" at entry point "program name" at compile unit offset +000032F at address 0000A86C.

Can you please give solution for this fix.

Re: File status 44 in cobol

PostPosted: Fri Nov 27, 2009 7:54 am
by dick scherrer
Hello and welcome to the forum,

When you have a question, you need to post more than a status code. . .

What was being attempted? Open, read, write, re-write, etc? How is the file defined?

I suspect that you are trying to do a re-write on this variable file (which is what causes a 44) and the length of the record has been improperly/incorrectly changed.

Re: File status 44 in cobol

PostPosted: Mon Nov 30, 2009 10:05 am
by jitender_2004bhiwani
Hi,

File status 44 is a logical error in your program due to variable lenghts of files. The reason may be as below:

"A boundary violation exists because an attempt was made to rewrite a record to a file and the record was not the same size as the record being replaced, or an attempt was made to write or rewrite a record that was larger than the largest or smaller than the smallest record allowed by the RECORD IS VARYING clause of the associated file-name."