Hi,

Check the CEETBCK macro in the Language Environment Vendor Interfaces manual. 
It enables you to walk the calling chain. Combine it with CEEYEPAF documented 
in the same manual to retrieve version information of each module on the stack.

Regards,

Fred van der Windt
Software Engineer

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Steff Gladstone
Sent: Sunday, May 4, 2025 3:03 PM
To: [email protected]
Subject: Detecting the call chain of 3GL programs from main to current

Let op!  Dit bericht is afkomstig van een externe afzender. Open alleen links 
en bijlagen als je de afzender herkent en vertrouwt.


Is there some table (or data in some other form) in memory (maintained perhaps 
by Language Environment) that details the current calling chain of 3GL or 
assembler programs starting with the main program and running down
the chain to the current executing program?   If so, how would I navigate
to it? (Or is there a callable routine that provides the information?)

I tried to produce such a chain by following the savearea chain from the 
current program up the calling hierarchy, but at some point in the hierarchy I 
receive a spurious pointer to the next higher program's savearea.

Thank you for any assistance or pointers (double entendre) you can provide.

All the best,
Steff Gladstone

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to