View previous topic :: View next topic
|
Author |
Message |
biswajit.dattagupta
New User
Joined: 01 Nov 2016 Posts: 1 Location: USA
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Talk to your Site Support. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
for static calls use the ISPF parts list. |
|
Back to top |
|
|
|