Static call options...

1. You said in a later message "I could get the dynamic calls by doing a 
temporary link/relink of the load
module but doing that on 10000 programs is not practical."

I don't see how a link when reveal dynamic calls. They are represented in the 
bound module as a symbol.

But for the static calls, why not? Just create a fake link with INCLUDEs of all 
10,000 load modules, then look at the resulting cross-reference to see which 
sections reference your known sub modules. It doesn't have to be an actual 
"relink" from object. You just want the binder to analyze the composite module.

2. PDS utility can list the sections in a module, as can AMBLIST, or calling 
one of the Binder APIs. That will tell you what's in the module. But it isn't 
clear if you need to go further and find what's calling what. That's harder.

3. A crazy idea: scan the modules for the text of the module names. That will 
find both static /and/ dynamic calls, as long as the dynamic target program or 
entry name isn't constructed from separate strings.


-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
<Thomas> <Berg>
Sent: Wednesday, February 18, 2026 6:35 AM
To: [email protected]
Subject: Need xref of load modules to find called submods (around 10000)

I have a need to get all called submodules in around 10000 loadmodules, both 
static and dynamic.
I had such program(s) and job to do that 10 years ago but lost it when I 
retired (began working again 2024).

Any way to do that (easily) with typical zOS tools or maybe downloadable user 
tools?
(I'm not able to do any installs outside of my userid.)

For those interested: I need to find all main programs that uses a DB2 table 
(data from).
The chain is:
DB2 table <-- known sub modules <-- calling modules in other applications (many 
hundreds of applications, potentially thousends of programs).

(This is not a one time usage, I will do similar things further on.)

----------------------------------------------------------------------
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