Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7932
Location: Bellevue, IA

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us