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

cross reference of sub program called by dynamic mean.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Thu Oct 08, 2009 9:54 am
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Oct 08, 2009 10:10 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Oct 08, 2009 4:54 pm
Reply with quote

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

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
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