Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need to display program object

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

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Tue Jun 23, 2009 3:44 pm    Post subject: Need to display program object
Reply with quote

Hi ,

I have a requirement to display the program object module.
In below example, I want to display the path where object is located.
Like "INITIAL is run from object TEST.WORKOBJ.INITIAL "

Could you please advice.

//RUN EXEC PGM=INITIAL
//STEPLIB DD DSN=MTPLB21.COBOL.LOADLIB,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Thanks,
Anand
Back to top
View user's profile Send private message

mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Tue Jun 23, 2009 5:56 pm    Post subject:
Reply with quote

I don't think this is possible. A load module contains no information about it's environment, and we never see information about what load library an executable module originates from in the JES output. I think the only option is to perform static analysis of the JCL and resolve all executable locations. There are many 'impact analysis' tools on the market that will do this (for a nominal fee).
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jun 23, 2009 6:14 pm    Post subject:
Reply with quote

This can be done, but not easily. You have to trace the control blocks to find where the program is executing from (remember the link list can also be used to execute programs); the system does this when writing to SYSUDUMP after an abend.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 23, 2009 8:57 pm    Post subject:
Reply with quote

Hello,

Quote:
I have a requirement to display the program object module.
What is needed form the "object" module?

Quote:
In below example, I want to display the path where object is located.
Like "INITIAL is run from object TEST.WORKOBJ.INITIAL "
Any system that has the least bit of Change Control or Configuratoin Management has promotion processes in place that always put Production executables in the Production load library(ies). There should be no need to "discover" where the module resides.

If you post what is actually wanted (not how you might solve it), someone may have a suggestion. What business requirement is there to do anything with the executables/libraries?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Jun 23, 2009 10:31 pm    Post subject:
Reply with quote

Dick,

I imagine (especially since he keep citing "test" libs) that he does not have
control over his concatenation (stages) while doing testing. So, as every rookie does,
he tries to change the behavior of the computer to make up for his lack
of understanding.

In short:
If you don't know from where your run-modules are being loaded,
you lack basic understanding for which a display is not going to be much help.
Back to top
View user's profile Send private message
Anand78

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Wed Jun 24, 2009 10:18 am    Post subject:
Reply with quote

On Tandem mainframes, I am creating two dummy servers for testing purpose one for production object and one for development.

When I execute prod/dev object, I want to some proof to document from
the program is executing from .

These test servers will be deleted everyday.

If my question is irrelevant for this COBOL forum, I apologize.

Please suggest how to delete this post.

Anand
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed Jun 24, 2009 12:11 pm    Post subject: Reply to: Need to display program object
Reply with quote

how does the last post relate to zOS architecture icon_question.gif

around here MF means zOS related
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 to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us