View previous topic :: View next topic
|
Author |
Message |
anjani shanker
New User
Joined: 26 Jan 2007 Posts: 37 Location: USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
anjani shanker
New User
Joined: 26 Jan 2007 Posts: 37 Location: USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
|