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
 
File handling in PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
anjani shanker

New User


Joined: 26 Jan 2007
Posts: 37
Location: USA

PostPosted: Wed Jan 21, 2009 9:37 pm    Post subject: File handling in PL1
Reply with quote

Hi,

Here is a scenario I am stuck with. I have a module which is writing XYZ file say the module is MXXXX. Now in the end of MXXXX i need to call a module MYYYY which would also write XYZ file but it should writing from whereever MXXXX has finished writing records.

How can this be implemented, plz help. Thanx!!
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Wed Jan 21, 2009 9:43 pm    Post subject: Reply to: File handling in PL1
Reply with quote

You must in module mYYYYY

1) declare the file as external
2) be aware that the file has already been opened by the caller module

but if the YYYYY module does it' s own open and close then You are out of luck icon_cool.gif
Back to top
View user's profile Send private message
anjani shanker

New User


Joined: 26 Jan 2007
Posts: 37
Location: USA

PostPosted: Wed Jan 21, 2009 10:18 pm    Post subject:
Reply with quote

Thanx for your suggestions!

enrico-sorichetti-

I can code the MYYYY as I want so I wont do a reopening of the file in here. However how am I going to pass the data from MXXXX? Is it going to be like passing the pointer simply like "Call MYYYY(file's ptr);" and this should do it.

I can take care of declaring the file as external and getting it opened by caller module(MXXXX).

~Anjani.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Wed Jan 21, 2009 10:31 pm    Post subject: Reply to: File handling in PL1
Reply with quote

Quote:
can take care of declaring the file as external and getting it opened by caller module(MXXXX).


Yes, that' s the way I would proceed ( open and close in the mXXXX module )
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 -> PL/I & Assembler 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 Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
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

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