EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
User avatar
Rima Bali
Registered Member
Posts: 22
Joined: Wed Apr 18, 2018 8:26 pm

EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.

Post by Rima Bali »

Hi,

Will AMBLIST give the compile date and time of all the programs?

Actually, as we don't have any source code management toll in place yet. We approached the support to know the Compile Date and Time for a few programs. We had been told that IBM UTILITY AMBLIST will do that easily.

It works but if there are dynamic or static calls? What is there is an assembler program or CICS program? Will always work?

Code: Select all

//********************************************************
//* EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.  
//* IF YOU OMIT THE MEMBER=XXXXXXXX                       
//* AMBLIST WILL PRINT ALL MODULES IN THE LOADLIB.        
//********************************************************
//AS10 EXEC PGM=AMBLIST                                   
//SYSPRINT DD SYSOUT=*                                    
//SYSOUT DD SYSOUT=*                                      
//STEPLIB DD DSN=SYS1.LINKLIB,DISP=SHR                    
//MYLOAD DD DSN=XXXXXX.XXXX.LOADLIB,DISP=SHR              
//SYSIN DD *                                              
  LISTIDR DDN=MYLOAD,MEMBER=XXXXXX                        
/*                                                        
//*
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.

Post by nicc »

Why not look at some of these called modules and see if you can see the information required?
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.

Post by Robert Sample »

Will AMBLIST give the compile date and time of all the programs?
AMBLIST does not give you the compile date and time -- it gives you the date and time of the linkage edit / bind (which most of the time will be very close to the compile date and time). Since it works with load modules or program objects, AMBLIST doesn't really know or care if the program is COBOL, assembler, or what -- the load module / program object format doesn't change based on the language. And dynamic calls use separate load modules for each subprogram, so they will NOT be included in the main program listing.
User avatar
Akatsukami
Global Moderator
Global Moderator
Posts: 122
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Contact:

Re: EXTRACT THE COMPILE DATE AND TIME FOR A LOAD MODULE.

Post by Akatsukami »

Robert Sample wrote: Mon Sep 24, 2018 5:28 pmAMBLIST does not give you the compile date and time -- it gives you the date and time of the linkage edit / bind (which most of the time will be very close to the compile date and time).
If there are no static links.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”