MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

contoken in load-modules

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
joergensen
Beginner


Joined: 05 Nov 2003
Posts: 9
Topics: 7

PostPosted: Wed Nov 05, 2003 2:32 am    Post subject: contoken in load-modules Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 05, 2003 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Fri Nov 07, 2003 5:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group