View previous topic :: View next topic
|
Author |
Message |
usharaniA
New User
Joined: 22 Jan 2008 Posts: 85 Location: India
|
|
|
|
Hi,
I want to get the cross reference of all main program calling a sub program.
I could able to get the cross reference of sub program called by static mean, but i dont know to get the cross reference of sub program called my dynamic mean.
Kindly help me to get the cross reference of sub program called by a main program by dynamic mean. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
You would have to scan all your source programs for ' CALL ' then determine whether or not it's a static or dynamic call. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Kindly help me to get the cross reference of sub program called by a main program by dynamic mean |
You're asking the impossible. For example, a COBOL program could read a file, take an 8-byte character variable from the file, and issue a CALL to the subprogram that the 8-byte character variable names. So unless you execute the program enough times to exercise every logic path, you might not be able to determine all the dynamically called programs. And even then, someone could add another record to the file, pointing to a different program, and now there's a new dynamically called subprogram to add to your cross reference. |
|
Back to top |
|
|
|