Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
U4038

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: U4038
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: 130
Location: Guntur

PostPosted: Tue Nov 20, 2007 12:05 pm    Post subject:
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    Post subject: U4038
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: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 12:35 pm    Post subject: Reply to: U4038
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    Post subject: Reply to: U4038
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: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 1:12 pm    Post subject: Reply to: U4038
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: 130
Location: Guntur

PostPosted: Tue Nov 20, 2007 1:13 pm    Post subject: Reply to: U4038
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    Post subject: Reply to: U4038
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: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:05 pm    Post subject: Reply to: U4038
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reg: U4038 abend bala.sachin TSO/ISPF 2 Wed Feb 27, 2013 6:13 pm
No new posts Reasons for U4038 abend ankita.maheswari11 ABENDS & Debugging 7 Thu Sep 08, 2011 1:18 pm
No new posts Abend S000 U4038 ankoo COBOL Programming 6 Tue Oct 12, 2010 12:58 pm
No new posts U4038 abend while calling ADABAS RockyS ABENDS & Debugging 2 Fri Apr 24, 2009 10:06 am
No new posts Abend U4038 error dick scherrer IDMS/ADSO 1 Mon Nov 03, 2008 5:53 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us