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
 

 

Cobol list of programs being called

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
biswajit.dattagupta

New User


Joined: 01 Nov 2016
Posts: 1
Location: USA

PostPosted: Tue Nov 01, 2016 2:10 am    Post subject: Cobol list of programs being called
Reply with quote

Hello!

I knew of a cobol compiler option that I used some time back (3 or maybe 4 years ago) but I do not recall it anymore no no matter how hard I try to.

When I compiled my cobol program with that option, I used to get displays which would give information as to which program is executing and whenever control used to transfer to a static/dynamic called sub-program, it used to display that program too. I vaguely remember how the display used to look - something like this:
Code:
EXISTING PROGRAM --> PROGRAM1
ENTERING PROGRAM --> PROGRAM2
EXISTING PROGRAM --> PROGRAM2
ENTERING PROGRAM --> PROGRAM1

If anyone is aware of what compiler option I might be talking about, can you please share it. Any help would be greatly appreciated. Thank you!
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Tue Nov 01, 2016 5:36 am    Post subject:
Reply with quote

I see several problems here:

1. How would a compiler know what dynamic calls a program makes? It would need to know the values of certain variables at compile time.
2. The compiler cannot know what code will even be executed, so it cannot even know what static calls will actually be made. It can know, of course, what static calls can be made.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Tue Nov 01, 2016 5:41 pm    Post subject: Reply to: Cobol list of programs being called
Reply with quote

Even assuming you mean "EXITING" not "EXISTING" this is nothing directly to do with the Enterprise COBOL compiler or its options.

It would be rare, and not really a good idea without considering implications, to have a mix of dynamic/static CALLs within the same program anyway. I suspect the type of CALL is irrelevant.

Probably something "home grown" as some trivial search-engineing reveals nothing likely as a product.

Hi Phr... Phil.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Tue Nov 01, 2016 8:48 pm    Post subject:
Reply with quote

Years ago as a member of the change control team at a regional brokerage, I wrote a COBOL system to produce a cross reference of every static and "most" possible dynamic program calls in all of the COBOL programs.

The system identified which programs had been modified in Librarian the previous cycle, then compiled each (to force inclusion of copybooks), and analyzed the compiled listing.

Static calls are trivial.

Dynamic calls using variables whose values were set in either VALUE clauses or MOVE verbs were identified.

There is no way, however, to identify dynamic calls using variables whose values are set in more complicated ways (e.g., via substrings or non-elementary variables).

Nonetheless, since the impossible cases were unusual, we did identify most.

Hi back at ya Bill. I'm retired now, but enjoy reviewing this most excellent forum. Regards to all.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Tue Nov 01, 2016 11:24 pm    Post subject:
Reply with quote

Talk to your Site Support.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Nov 02, 2016 12:14 am    Post subject: Reply to: Cobol list of programs being called
Reply with quote

for static calls use the ISPF parts list.
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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