Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

cross reference of sub program called by dynamic mean.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: cross reference of sub program called by dynamic mean.
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    Post subject:
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: 8003
Location: Bellevue, IA

PostPosted: Thu Oct 08, 2009 4:54 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us