Page 1 of 1

Mainframe ABEND Code U4038

PostPosted: Wed Jun 05, 2013 8:59 pm
by vitorsadak
GOOD DAY,

HELLO,

'M GOING THROUGH AN ERROR IN THE PROGRAM AS MAINFRAME COBOL SEGUIENTES.

when I run my job, I have this abend in SYSTSPRT

READY
DSN SYSTEM(DB2D)
DSN :
RUN PROGRAM(ES0111T) PLAN(SIASBAT) LIB('DES.V01.LOAD')
IKJ56641I DSN ENDED DUE TO ERROR+
IKJ56641I USER ABEND CODE 4038 REASON CODE 00000001

SYSOUT and I got this message:

IGZ0201W- A file attribute mismatch was detected. File ARQENTRA in program ES0111
file specified in the ASSIGN clause had a record length of 150.
IGZ0035S- There was an unsuccessful OPEN or CLOSE of file RETORNO in program ES01
Neither FILE STATUS nor an ERROR declarative were specified. The status
From compile unit ES0111T at entry point ES0111T at compile unit offset
at address 0006E174.


WHAT CAN THIS GOING, SOMEONE HELP ME PLEASE.

Re: ABEND CODE 4038

PostPosted: Wed Jun 05, 2013 9:19 pm
by c62ap90
Look at your program file DD-ARQENTRA and be sure it is setup for 150. Also be sure your file in your JCL is length 150.
I'm guessing your program has length of 150 but your input file is not length of 150.

 FD  file-name                             
     RECORDING MODE IS F                   
     LABEL RECORDS ARE STANDARD             
     RECORD CONTAINS  150 CHARACTERS       
     BLOCK CONTAINS 0 RECORDS.             
                                           
 01 file-name-rec     PIC X(150).

Re: ABEND CODE 4038

PostPosted: Wed Jun 05, 2013 9:25 pm
by Robert Sample
You have two problems. The warning on DD name ARQENTRA indicates you have a record length mismatch of some sort.

You also got a file status 35 on DD name RETORNO indicates that you do not have this DD name in your JCL (or allocated to your TSO session). It could be present but mis-spelled, or not present at all.

Re: ABEND CODE 4038

PostPosted: Wed Jun 05, 2013 10:30 pm
by vitorsadak
Robert Sample wrote:You have two problems. The warning on DD name ARQENTRA indicates you have a record length mismatch of some sort.

You also got a file status 35 on DD name RETORNO indicates that you do not have this DD name in your JCL (or allocated to your TSO session). It could be present but mis-spelled, or not present at all.




THANK YOU FOR RESPONSE, WHEN REALLY CHANGED THE JOB WENT NORMALLY.

Re: ABEND CODE 4038

PostPosted: Wed Jun 05, 2013 11:24 pm
by Akatsukami
Robert Sample wrote:You have two problems. The warning on DD name ARQENTRA indicates you have a record length mismatch of some sort.

You also got a file status 35 on DD name RETORNO indicates that you do not have this DD name in your JCL (or allocated to your TSO session). It could be present but mis-spelled, or not present at all.

A third problem is that the OP should have been made in the "ABENDS and SQL Codes" forum :P

Re: ABEND CODE 4038

PostPosted: Thu Jun 06, 2013 1:37 am
by NicC
Fourth problem - too much shouting (caps and bold).
Fifth - we had a similar problem the other day - OP did not read the forum rules and search before posting.
Moving.