View previous topic :: View next topic
|
Author |
Message |
rajesh_kota
New User
Joined: 04 Mar 2008 Posts: 10 Location: chennai
|
|
|
|
When running one cobol program , it is abending with u4038 error. the message shown below is coming
IGZ0020S A logic error occurred. Neither FILE STATUS nor a declarative
was specified for file O7BKTFLG in program DDDG63SV at relative location
X'01253C'. The status code was 44. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
check the manual
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA9180/CCONTENTS
Quote: |
IGZ0020S A logic error occurred. Neither FILE STATUS nor a declarative was
specified for file file-name in program program-name at relative
location relative-location. The status code was status-code.
Explanation: This error is an I/O error, usually caused by an operation request that is not valid for the file, for example, a WRITE into a file opened for INPUT, or a START to a VSAM ESDS.
No file status clause was specified, and no error declarative was in effect.
Programmer Response: Check operation request for the file.
System Action: The application was terminated.
Symbolic Feedback Code: IGZ00K |
and fix Your program |
|
Back to top |
|
|
rajesh_kota
New User
Joined: 04 Mar 2008 Posts: 10 Location: chennai
|
|
|
|
FD BKTFLAG-FILE
RECORDING MODE IS V
LABEL RECORDS ARE STANDARD
BLOCK CONTAINS 0 RECORDS.
Hi this was the file definition in the program. this is opened in output mode.
WRITE BKTFLAG-RECORD FROM WS-BKTFLAG-RECORD. the error occurs when this statement is executing.
Pls help and reply me if any more information u want..thanks da.. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
since there is not file-status clause or declaratives, I would bet that the open was not successful, thus no i/o against the file would be successful.
But, you have no idea if the open was successful.
I would suggest modifying the program: add status clause, variable and check the status after any i/o |
|
Back to top |
|
|
rajesh_kota
New User
Joined: 04 Mar 2008 Posts: 10 Location: chennai
|
|
|
|
Thanks everybody. I will try this by using your valuable suggestions and I'll let you know. Meanwhile if you get any more ideas please let me know. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
If the file status really is a 44:
Quote: |
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. |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
U4038 is a user (generic) abend. One probable resaon can be LRECL mismatch between the 'length' used in FD & DSN used in JCL.
Compare the LERECL for BKTFLAG-FILE in program DDDG63SV & of DSN used against DD name O7BKTFLG in Your JCL. They must be same.
Hope this helps. |
|
Back to top |
|
|
|