IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

U4038


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Nov 20, 2007 11:55 am
Reply with quote

Hi All,

I have a proc with around 15 steps in it and my final aim is to get a report at the last step. When I run the job I get the required report but in a step in the middle I am getting 'file attribute mismatch' i.e.u4038. In that step it is showing in the input file where I have not done any changes and the record format is VB. Is it fine. Can anyone help me out in this.

thanks in advance.
Back to top
View user's profile Send private message
balakrishna reddy

Active User


Joined: 13 Jul 2007
Posts: 128
Location: Guntur

PostPosted: Tue Nov 20, 2007 12:05 pm
Reply with quote

Hi Kumar,

Quote:

In that step it is showing in the input file where I have not done any changes


Can you provide us some details about what you are trying to do in that step and if possible specify the sysout of that job.
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Nov 20, 2007 12:23 pm
Reply with quote

Hi,
We are trying to extract records in that particular step and some compute in the program. But in the input file I have not done any changes, it is the prduction input file and it is VB format.
This is the sysout message in that particular step.
"A file attribute mismatch was detected. File CLMMSTR-FILE in program had a record length of 940 and the file specified in the ASSIGN clause had a record length of 875".

thanks,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 12:35 pm
Reply with quote

Kumar,

Quote:
A file attribute mismatch was detected. File CLMMSTR-FILE in program had a record length of 940 and the file specified in the ASSIGN clause had a record length of 875".



This is self-explanatory. The record length specified in the JCL and in the File Division are different. Change accordingly.

what should be the record length of the final output file?
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Nov 20, 2007 12:51 pm
Reply with quote

But I verified with my friend he is saying if I have not done any changes in prod file then leave it, dont do any changes since the record format of my input file is VB.

Thanks.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 1:12 pm
Reply with quote

Kumar,

If you have the source code check the record length specified in the FD DIVISION for CLMMSTR-FILE. It should be 936. (as VB)

Check the record length of the input file given across the DD. It would be 875 and hence the file attribute mismatch.

Just check and post your observations.
Back to top
View user's profile Send private message
balakrishna reddy

Active User


Joined: 13 Jul 2007
Posts: 128
Location: Guntur

PostPosted: Tue Nov 20, 2007 1:13 pm
Reply with quote

Hi Kumar,

Can you post the FD & FILE CONTROL of that variable file.
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Nov 20, 2007 1:26 pm
Reply with quote

Aaru,

It is the same as you mentioned, now what do I need to do.

thanks,
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:05 pm
Reply with quote

Kumar,

Quote:
It is the same as you mentioned, now what do I need to do.



Either you have change the record length in the cobol program and compile\link again.

or check whether you have got the correct input file.

Are you testing with the correct input file?

It all depends on your business requirements.
Back to top
View user's profile Send private message
banu_parveen

New User


Joined: 30 Jan 2007
Posts: 6
Location: india

PostPosted: Sat Dec 01, 2007 10:37 am
Reply with quote

For VB files the LRECL specified in the JCL should be plus four bytes to what is specified in the program.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts COBOL program error ENDED AT SVSCJES2... COBOL Programming 1
No new posts How to resolve U4038? COBOL Programming 5
No new posts IMS error U4038 while executing my PL... IMS DB/DC 2
No new posts Reg: U4038 abend TSO/ISPF 2
No new posts Reasons for U4038 abend ABENDS & Debugging 7
Search our Forums:

Back to Top