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: 7996
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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