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

Is it possible to call the mainprogram from the subprogram


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunpvarier

New User


Joined: 07 Nov 2006
Posts: 16
Location: banglore

PostPosted: Thu Jul 05, 2007 2:58 pm
Reply with quote

PGM A calling PGM B and PGM B CALLS PGM C. Is it possible to call Program A and Program B from the Program C.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jul 05, 2007 3:06 pm
Reply with quote

arun,

Quote:
PGM A calling PGM B and PGM B CALLS PGM C. Is it possible to call Program A and Program B from the Program C


Why dont you try and let us know what you had found?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Jul 05, 2007 3:11 pm
Reply with quote

Yes it is possible-
to know more about the scenario see below link-
http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol4.doc/tpsubw03.htm
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Thu Jul 05, 2007 6:56 pm
Reply with quote

Be cautious when using IS RECURSIVE.

At our shop, RECURSIVE programs have their working storages allocated off the LE stack and not the LE heap as is normally the case. Our environment is configured such that stack storage is obtained below the 16M line. Thus - if your working storages are fat - you may find yourself suffering memory problems.

This happened to us recently.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Jul 06, 2007 7:23 pm
Reply with quote

Why? Why don't you pass all the info you need in your linkage section and make sure to always do GOBACK.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
Search our Forums:

Back to Top