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
 

 

To find out the call chain of a Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Fri Nov 16, 2007 8:15 pm    Post subject: To find out the call chain of a Program
Reply with quote

Hi,

Is there any simple method to find out the call chain of a program?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Fri Nov 16, 2007 8:27 pm    Post subject: Reply to: To find out the call chain of a Program
Reply with quote

Quote:
Is there any simple method to find out the call chain of a program?


simple ... NO !
possible ... YES

as usually depends on the real need to find out,
Your skills,
Your knowledge of the MVS control blocks and chains

after all abends contain that info...
abend in ... at address ...
called by .... at address ...

...
...
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Fri Nov 16, 2007 9:08 pm    Post subject:
Reply with quote

HI es,

When we make some modifications in a sub program, it becomes a tough task to find out all the main driver programs. (If we are going to introduce a new DB2 subroutine all the main programs have to be found out for defining RTT entry for them).

Simiarly if we are going to add a subroutine, all the subroutines called from that has to be found out inorder to make sure that all the required changes are done.

So is there any tool to find out the call chain?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 17, 2007 10:16 am    Post subject:
Reply with quote

Hello,

If your source is in a common library, you can search the code in library for the name(s) of the called module(s) you are trying to track. You can do this if the source is in a pds or ca-librarian.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Nov 19, 2007 3:00 pm    Post subject:
Reply with quote

if you have endevor, you can use the footprint.

if all your modules are statically linked, you can use amblist with the listload.

otherwise, 3.14 is always a solution.
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Tue Nov 20, 2007 12:16 am    Post subject:
Reply with quote

Hi,

Currently we are searching for the calling modules of the subroutine and in turn their calling modules (we repeat the same process untill we are finished with all the chain). This is the case when we are using 3.14.

Is there any better method to accomplish the same.

We are also not working on endevor.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Nov 20, 2007 12:23 am    Post subject:
Reply with quote

Hello,

Without endevor or some other similar tool (like changeman), i believe what you are doing is the way to go.

A word of caution - if any of the called modules are specified/determined at run-time (rather than compile-time), they will not appear in any source search.
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Tue Nov 20, 2007 12:26 am    Post subject:
Reply with quote

Hi,

We are using Changeman, how can we use it for this?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Nov 20, 2007 12:47 am    Post subject:
Reply with quote

Hello,

I'd suggest you talk with your Configuration Management or Change Control people. They should be able to help.

Also, maybe someone here at the forums will post some changeman info - it is a product i've not used (yet icon_smile.gif ).
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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