View previous topic :: View next topic
|
Author |
Message |
bh
New User
Joined: 19 Mar 2006 Posts: 26 Location: India
|
|
|
|
Hi !
How to identify a caller program(calling program )form the called program ?
Regards,
bh. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
gowtham_1982 Warnings : 1 Active User
Joined: 02 Dec 2005 Posts: 109
|
|
|
|
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 |
|
|
humpty Warnings : 1 New User
Joined: 01 May 2005 Posts: 23
|
|
|
|
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 |
|
|
|