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

Cobol list of programs being called


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Senior Member


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

PostPosted: Tue Nov 01, 2016 5:36 am
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 01, 2016 5:41 pm
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

Senior Member


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

PostPosted: Tue Nov 01, 2016 8:48 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 02, 2016 12:14 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top