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

Caller Program/Called Program


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

New User


Joined: 19 Mar 2006
Posts: 26
Location: India

PostPosted: Sun Mar 26, 2006 12:59 pm
Reply with quote

Hi !


How to identify a caller program(calling program )form the called program ?

Regards,
bh.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Mon Mar 27, 2006 6:56 am
Reply with quote

bh,

This topic has been discussed several times, Here is one of the PREVIOUS POSTS that you can look at. If this does not answer you question, please come back.

Dave
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Mon Mar 27, 2006 8:54 am
Reply with quote

DavidatK wrote:
bh,

This topic has been discussed several times, Here is one of the PREVIOUS POSTS that you can look at. If this does not answer you question, please come back.

Dave



Hi Dave, your link is useful. But the requirement here is to identify the program which has invoked the particular sub program.

Usually the informations of the programs which invoke a program will be available in the maintenance log or what ever you call it. Mostly through this we can identify what are the programs which can invoke a program. Other than this, i think only in runtime or after a successful or unsuccessful run, we can identify what program has invoked.


Hope i'm cleare.


Kind regards,

gowtham
Back to top
View user's profile Send private message
humpty
Warnings : 1

New User


Joined: 01 May 2005
Posts: 23

PostPosted: Mon Mar 27, 2006 10:33 pm
Reply with quote

Called program Consists of:
1. Linkage section - to pass the value from the calling pgm to called pgm and called pgm to calling pgm.
2. Called pgm contains EXIT PROGRAM as the last sentence.

Calling pgm consists of:
1. Uses name of the called pgm in procedure division. the name is the progrm name defined in PROGRAM-ID.
ex: PROCEDURE DIVISION.
BEGIN.
...
CALL 'ABC' USING identifier1, identifier2...
...
STOP RUN
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top