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
 
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: 8280
Location: Dubuque, Iowa, USA

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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts Cics opening with mnc in Pune enikhilk Mainframe Jobs 0 Thu Mar 29, 2018 10:56 am

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