Page 1 of 2

PSBLIB's create time

PostPosted: Mon Aug 12, 2013 2:18 pm
by gycwolf
I hope to know when psblib's member is created from PSBLIB's Content, Whether there is a tool to do it ?

Re: PSBLIB's create time

PostPosted: Tue Aug 13, 2013 2:54 am
by Akatsukami
Read about the PSBGEN utility here.

Re: PSBLIB's create time

PostPosted: Tue Aug 13, 2013 7:17 am
by gycwolf
I readed [PSBGEN utility], but I don't find the method to solve it.

Re: PSBLIB's create time

PostPosted: Tue Aug 13, 2013 2:28 pm
by NicC
"solve it" - solve what? The PSBGEN - if you study the link - produces SYSPRINT. This will ahve the date and time of the module generation. That info may also be in the PSB load module - have you looked?

Re: PSBLIB's create time

PostPosted: Tue Aug 13, 2013 7:56 pm
by Akatsukami
To expand on NicC's reply: find the linkage editor signature in the genned PSB. Older linkage editors will place, at the end of this record, the gen date as a three-byte unsigned packed decimal number, in the format yyddd. The z/OS binder places the date and time at the end of the record -- the three-byte date followed by a four-byte unsigned packed decimal time in the format xhhmmss (x being a "slack" nybble).

Re: PSBLIB's create time

PostPosted: Wed Aug 14, 2013 6:53 am
by gycwolf
I can find member's created time in the PSB load module by my eyes, but I hope to find it by tool or utility.

Re: PSBLIB's create time

PostPosted: Wed Aug 14, 2013 12:38 pm
by BillyBoyo
Have you looked at the three modules listing in the first paragraph of the latest link provided to you?

Re: PSBLIB's create time

PostPosted: Wed Aug 14, 2013 6:31 pm
by Ed Goodman
I'm having trouble finding the IBM version, but I know it's out there...

We have a BMC utility that will read a PSBLIB entry and give you exactly what you are looking for. It runs in batch, and I know I ran an IBM version of it once to make sure we could use them if we dropped BMC. Look for "IMS Tools" or something like that on the IBM site.

Re: PSBLIB's create time

PostPosted: Wed Aug 14, 2013 6:47 pm
by Ed Goodman
OK, found this:
//JS010  EXEC  PGM=FABMMAIN                           
//STEPLIB   DD DSN=IMSVS.DBT.SHPSLMD0,DISP=SHR       
//DBDLIB    DD DSN=WTSO.WNEG.DBDLIB,DISP=SHR     
//PSBLIB    DD DSN=WTSO.WNEG.PSBLIB,DISP=SHR       
//ACBLIB    DD DSN=WTSO.WNEG.ACBLIB,DISP=SHR       
//*                                                   
//SYSIN     DD *                                     
 PSB=CHASER                                   
/*                                                   
//SYSOUT    DD SYSOUT=*                               
//MAPOUT    DD SYSOUT=*                               
//SYSPRINT  DD SYSOUT=*                               
//SYSPUNCH  DD SYSOUT=*                               


The third line of the output has:
PSBGEN:06/05/2006 09.42

Now, it's all up to YOU to find the equivalent IMSVS.DBT.SHPSLMD0 library at your shop. I would recommend you find an IMS compile, then look at the link/edit step. There will be a SYSLIN DD statement, and it will have a concatenated DSN that has a name like SYS.PROCLIB, or IMSVS.PROCLIB. Whatever that is, use the HLQ from that file name, do a 3.4 look up on it, and find 'DBT'. That should be the IBM IMS DataBase Tools (D.B.T. get it?).

Also, you can get the books for this utility at the IBM web site. Be sure to get the ones that match your version of IMS.

Re: PSBLIB's create time

PostPosted: Thu Aug 15, 2013 11:31 am
by gycwolf
Ed Goodman thank you very much.
The tool is very good. (^-^)