Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
Posted: Fri Nov 26, 2004 4:05 am Post subject: Load modul, check
Hi,
I like to create the "function tree" of an load modul. This means: Create an tree with all subroutines and the depended subroutines.
At the moment I use ABMLIST to list all csects and a idividual program to read the output of AMBLIST and build the tree.
A new requirement is now, to find out the DB2 Package Version timestamp for each CSECT (only CSECTs with DB2 Precompile of course). This timestamp is of course not listed by AMBLIST. The DB2 Precompile Timestamp can be found in the CSECT.
The idea now is, to do analyse the load without AMBLIST, this mean reading the load block by block using PL1 program, getting the DB2 precompilestamp and the CSECT names.
But to do this job, a documenation is necessary for the internal format of an load modul.
Questions:
1) Any better ideas how to print out the complete function tree of an load with DB2 Package Precompile timestamp ?
2) Documenation for internal load modul format ?
As you build your "tree" using load modules, have you considered the impact of dymanic calls where called program will not reside in calling modules's load? This means, your tree might not be complete.
As for matching timestamps, I recently did something like this:
1. Read the load module using FILE-AID
2. Get the timestamp from DB2 system tables (SYSIBM.SYSPACKDEP)
3. Compare the results using SORT and write out mismatches in a separate file for manual actions.
Following is the JCL step that reads the load module and produces a report that includes all load module information including time stamp.
//* Get load module information including timestamp
//FILEAID1 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD DSN=&DSN1,
// DISP=(NEW,CATLG,CATLG),SPACE=(TRK,(600,600),RLSE),RETPD=10
//DD01 DD DSN=&LOADLIB1,DISP=SHR
//SYSIN DD *
$$DD01 LMODMAPN MEMBERS=*
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum