ganeshptrk
New User
Joined: 04 Apr 2007 Posts: 17 Location: Chennai
|
|
|
|
Hi,
Consider the following scenario.
I have a main program, say 'MAINPGM", which is calling a sub program say "SUBPGM". The function of SUBPGM is to open an input file, read a record and passes it back to MAINPGM. The MAINPGM does some processing on the record received from SUBPGM. After, the MAINPGM again calls the SUBPGM to receive the next record. Obviously, I don't want to execute SUBPGM from the very first instruction like opening file etc. I only want to go directly to READ RECORD sectionof SUBPGM.
How can I do this.
thanks
Ganesh |
|