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

calling a subprogram at a different location


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ganeshptrk

New User


Joined: 04 Apr 2007
Posts: 17
Location: Chennai

PostPosted: Fri Jul 06, 2007 6:24 pm
Reply with quote

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
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sat Jul 07, 2007 12:18 am
Reply with quote

Communication between modules is done by parameters. You can send them from the caller to the callee and vice versa.
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 Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to go into a subprogram in IBM De... IBM Tools 5
Search our Forums:

Back to Top