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
 

 

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: 10274
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: 10274
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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