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
 
Getting File status 39 due to file attribute mismatch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue Apr 27, 2010 3:49 pm    Post subject: Getting File status 39 due to file attribute mismatch
Reply with quote

Hi,

I am getting file status 39 due to file attribute mismatch. I have mentioned LRECL as 133 in JCL and RECFM as FBA. In My program report layout mentioned is 132 bytes. I am creating report with different headers in it and has layout for each header line. Can you please help me in this regard.

regards,
rupesh gupta
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 27, 2010 3:56 pm    Post subject:
Reply with quote

Doesn't your program have to place the carriage control byte in the file, so should be defined as 133, or have you tried to define the file as FBA 132 in the JCL.
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue Apr 27, 2010 4:42 pm    Post subject: Reply to: Getting File status 39 due to file attribute misma
Reply with quote

Expat,

I need to place carriage control byte in file but don't we give 132 bytes in program and 133 in JCL when RECFM is FBA.

regards,
rupesh gupta
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Apr 27, 2010 4:51 pm    Post subject:
Reply with quote

You need to define the cc-byte into the record as well, so it totals 133.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Apr 27, 2010 4:55 pm    Post subject:
Reply with quote

Quote:
but don't we give 132 bytes in program and 133 in JCL when RECFM is FBA.
Not in normal shops -- but it will depend upon your site-specific settng for the ADV compiler option; contact your site support group or run a COBOL compile to find out for sure whether ADV is set.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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