If the called routines don't maintain the forward link in the save area, then 
starting from TCBFSA in the J/S TCB won't work. Also, I don't know of any good 
way to account for XPLINK. You might check whether Diagnosis addresses. Also 
check what IPCS macros are available.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List on behalf of Steff Gladstone
Sent: Sunday, May 4, 2025 9:02 AM
To: [email protected]
Subject: Detecting the call chain of 3GL programs from main to current


External Message: Use Caution


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