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
 
DCB mismatch for FBA dataset in report pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Wed Jan 10, 2007 8:06 am    Post subject: DCB mismatch for FBA dataset in report pgm
Reply with quote

I am working on a report program where in cobol the record structure is declared with length 132.In the JCL the DD is declared as:
LRECL=133,RECFM=FBA,BLKSIZE=1330

When this is moved to PROD it abends with a DCB mismatch and file status=39 with file open failing.

Kindly let me know what should be the fix for this.
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jan 10, 2007 9:06 am    Post subject:
Reply with quote

Hi Morph,

I assume you mean to say that the identical JCL/pgm code works in test.

If so, your test/prod compiler options may differ. You might want to give them a look.
Back to top
View user's profile Send private message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Wed Jan 10, 2007 9:13 am    Post subject: Re: DCB mismatch for FBA dataset in report pgm
Reply with quote

Are the allocations correct.

Should I be changing the JCL attributes to LRECL=132 FBA or should I be changing the cobol declaration to 133.

This looks more of a runtime fauilure to me.The dataset got allocated and when cobol tried to open the file it failed as the attributes did not match.Hence status code=39.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 10, 2007 9:25 am    Post subject:
Reply with quote

Hello,

As Jack asked, does the EXACT same JCL work in test? Might it be that in test you use "SYSOUT=" but in production a dataset name and dcb parameters are specified?

If it IS a sysout dataset in either/both environment, i'd suggest leaving out the dcb info.

If you need to create a "print file", modify your FD to be length 133 and add 1 byte of filler before the printable info and see if that corrects the abend.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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