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
 

 

Issue in Opening & Closing a RRDS File in same LUW

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

New User


Joined: 31 Oct 2006
Posts: 11

PostPosted: Fri Mar 13, 2009 4:11 pm    Post subject: Issue in Opening & Closing a RRDS File in same LUW
Reply with quote

Program A is calling Program B multiple times in the same logical unit of work,

In the first call to PGM B, We are opening a VSAM RRDS File (I-O Mode in PGM B & DISP=SHR in JCL of PGM A) and writing to the header record. We didn't closed the file in PGM B & control will be passed back to PGM A.

In the second call to PGM B, We have to write the Detail record in RRDS file. Here we are expecting the file to be open and hence we are directly writing into the file, which inturn gives file status code 48.

Please let us know how we can write into the RRDS file in the same logical unit of work without opening for each call.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Fri Mar 13, 2009 5:26 pm    Post subject:
Reply with quote

Does program B have INITIAL on the PROGRAM-ID? Using EXTERNAL may allow the file to stay open, but I've never done much with EXTERNAL files so I don't know that for sure.
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 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
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 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
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm


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