Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us