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

To find out the chain of a program


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ossodue

New User


Joined: 29 Mar 2006
Posts: 4

PostPosted: Thu Apr 23, 2009 1:14 pm
Reply with quote

I'd like to use z/os data areas to find out the chain of a program. I've read this topic but there's no answer for my problem.
I've tried with CDE data area but it seems to be wrong.

I think it could be possible because when a routine abends, the AbendAID returns the chain of program in the "Call Trace Summary" section.

Thank you.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 23, 2009 1:18 pm
Reply with quote

search the cbttape ( Use [URL] BBCode for External Links ) for samples of control block chasing
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 23, 2009 5:03 pm
Reply with quote

Assuming that when you say "chain of a program" you're referring to the calling sequence, and assuming that all the routines are higher-level language or standard Assembler, the Save Area Trace gives the calling chain for programs. This works, however, only as long as standard calling sequence is used to set the forward and back pointers in the various save areas. I don't think the CDE has anything to do with it -- as long as the save areas are chained together properly, the sequence can be reconstructed without referencing anything else.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts To find whether record count are true... DFSORT/ICETOOL 6
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
Search our Forums:

Back to Top