How to find a load module by date&time that is compiled?



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

How to find a load module by date&time that is compiled?

Postby Mehdi shri » Sun May 27, 2012 9:06 pm

Hi
I want to find a load module in my loadlib PDS that is for example compiled at this time >>> 20120101235900
Is ther any way to find it by this parameter(compiling time).
Or is there a PGM to use it in a JCL to do this purpose.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: How to find a load module by date&time that is compiled?

Postby steve-myers » Sun May 27, 2012 10:16 pm

First of all, your question is basically meaningless. Many, perhaps most, load modules contain many programs that were compiled at various dates. Most load modules contain the date and time they were linked, and for most load modules, the compile date, but not the time, for the component programs. This data is called IDR data. Many programmers insert the compile date and time into the binary program text, but there is no standard as to the location and format.

The IBM supplied AMBLIST utility can extract the IDR data. It is documented in "MVS Diagnosis: Tools and Service Aids" for your z/OS release. AMBLIST cannot use date and time as selection criteria.

These users thanked the author steve-myers for the post:
Mehdi shri (Tue May 29, 2012 9:52 am)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How to find a load module by date&time that is compiled?

Postby dick scherrer » Mon May 28, 2012 7:10 am

Hello,

Just curious. . .

How might you knw the exact compile time and not know the "loadmodule" name?

As mentioned, AMBLIST should provide the info you want (for all included modules), but you should use the executable name.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to find a load module by date&time that is compiled?

Postby Monitor » Mon May 28, 2012 12:17 pm

If you want to find out at execution time, there is a COBOL Intrinsic function named When-Compiled.
Of course, you have to include this in the program source and recompile.
FYI only.
Monitor
 
Posts: 98
Joined: Wed Jan 18, 2012 8:59 pm
Has thanked: 0 time
Been thanked: 7 times

Re: How to find a load module by date&time that is compiled?

Postby Mehdi shri » Tue May 29, 2012 10:36 am

Dear friends
I must copy series of load modules from a PDS to another PDS on periods of the times . This load module's compiling time (and size) must be equal to ones thas specified at checklist for me(in an excel sheet). Therefor I must check them one by one in load modules. This this time consuming and difficult for me. I want to use a utility to do this for me.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: How to find a load module by date&time that is compiled?

Postby steve-myers » Tue May 29, 2012 11:03 am

Well, then you probably have two choices. I grant, neither are appealing.
  • Use the LISTIDR function in AMBLIST, and write a program to analyze the output.
  • Write an Assembler program to analyze the load module members. This is not terribly difficult; I could knock something together in a couple of days, but I've been writing Assembler code to read load modules for more than 30 years. Load module records are described in "MVS Program Management: Advanced Facilities" for your z/OS release.

These users thanked the author steve-myers for the post:
Mehdi shri (Wed May 30, 2012 10:58 am)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How to find a load module by date&time that is compiled?

Postby NicC » Tue May 29, 2012 11:59 am

It may be boring and time consuming but that is what work is about. But you do have a problem - load modules are not compiled - they are linked or bound. You may have to ask someone more experienced where to look if you cannot follow any of the advice given here.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to find a load module by date&time that is compiled?

Postby dick scherrer » Tue May 29, 2012 9:06 pm

Hello,

Is there no change management software in use?

As there can only be 1 member of a given name in a pds, what should be done if a module in the library does not have the same date/size as the spreadsheet?

If there is a change to some module that needs to be promoted, how would the "wrong" module be in the library from which promotions are done?

Somewhat scary to me. . . I've supported more than 100 different data centers and none of them does this kind of compare. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to find a load module by date&time that is compiled?

Postby Pedro » Tue May 29, 2012 11:55 pm

Therefor I must check them one by one in load modules.


Given Steve-Myers' response about composite load modules,can you elaborate on what kind of check you do manually?
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: How to find a load module by date&time that is compiled?

Postby BillyBoyo » Wed May 30, 2012 2:25 am

Mehdi shri wrote:Dear friends
I must copy series of load modules from a PDS to another PDS on periods of the times . This load module's compiling time (and size) must be equal to ones thas specified at checklist for me(in an excel sheet). Therefor I must check them one by one in load modules. This this time consuming and difficult for me. I want to use a utility to do this for me.


If you are copying load modules, forget compile date/time.

You need the data/time of the link/bind, not of the compile.

How about you get the "copy requester" to give you the information from AMBLIST on their library, then, after you do the copy, you run AMBLIST on your library.

You don't have to do it on the whole library, just specify the members being copied.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post