Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Caller Program/Called Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Caller Program/Called Program
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    Post subject: Re: Caller Program/Called Program
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    Post subject: Re: Caller Program/Called Program
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    Post subject: Re: Caller Program/Called Program
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us