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: 8057
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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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