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
 

 

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: 7933
Location: Bellevue, IA

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: 6966
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: 10211
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 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 Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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