View previous topic :: View next topic |
Author |
Message |
joergensen Beginner
Joined: 05 Nov 2003 Posts: 9 Topics: 7
|
Posted: Wed Nov 05, 2003 2:32 am Post subject: contoken in load-modules |
|
|
Hello
how do i find the contoken in a load-module (pl/1) . I now how to find it in the db2-environment. how do i identify a contoken
/jorgensenl |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Nov 05, 2003 3:43 am Post subject: |
|
|
Joergensen,
I assume that when you meant CONTOKEN you actually mean the compile-link edit date in a load module.The following JCl using IBM's AMBLIST will give you formatted report of your load module.
Code: |
//STEP0100 EXEC PGM=AMBLIST
//SYSLIB DD DSN=YOUR LOADLIB DSN,
// DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTIDR MEMBER=LOADMODNAME
//*
|
Alternatively if you have Fileaid at your shop, then you can use option 3.1 (library utility) and its suboptions A and S which gives you all info about load modules including compile/linkedit dates.
Hope this helps...
cheers
kolusu |
|
Back to top |
|
 |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Fri Nov 07, 2003 5:21 am Post subject: |
|
|
If you precompile your modules with "VERSION(AUTO)", the generated timestamp is used to name the resulting package (location-id.collection-id.module-name.timestamp). This timestamp is stored in the resulting load module as an eight byte hex-digit, where the last four bytes are put in front.
The good news is, that the timestamp in a readable format is placed in the load module itself (somewhere). Therefore do a "browse" of the load module and search for a string "2003-", and you are sitting on the contoken in it's printable format.
regards
Christian |
|
Back to top |
|
 |
|
|