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: 10256
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: 10256
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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