IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File handling in PL1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 21, 2009 9:43 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 21, 2009 10:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top