PSBLIB's create time



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

PSBLIB's create time

Postby gycwolf » Mon Aug 12, 2013 2:18 pm

I hope to know when psblib's member is created from PSBLIB's Content, Whether there is a tool to do it ?
gycwolf
 
Posts: 11
Joined: Fri Aug 09, 2013 5:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PSBLIB's create time

Postby Akatsukami » Tue Aug 13, 2013 2:54 am

Read about the PSBGEN utility here.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: PSBLIB's create time

Postby gycwolf » Tue Aug 13, 2013 7:17 am

I readed [PSBGEN utility], but I don't find the method to solve it.
gycwolf
 
Posts: 11
Joined: Fri Aug 09, 2013 5:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PSBLIB's create time

Postby NicC » Tue Aug 13, 2013 2:28 pm

"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?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: PSBLIB's create time

Postby Akatsukami » Tue Aug 13, 2013 7:56 pm

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).
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: PSBLIB's create time

Postby gycwolf » Wed Aug 14, 2013 6:53 am

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.
gycwolf
 
Posts: 11
Joined: Fri Aug 09, 2013 5:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: PSBLIB's create time

Postby BillyBoyo » Wed Aug 14, 2013 12:38 pm

Have you looked at the three modules listing in the first paragraph of the latest link provided to you?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: PSBLIB's create time

Postby Ed Goodman » Wed Aug 14, 2013 6:31 pm

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.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: PSBLIB's create time

Postby Ed Goodman » Wed Aug 14, 2013 6:47 pm

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.

These users thanked the author Ed Goodman for the post:
gycwolf (Thu Aug 15, 2013 11:32 am)
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: PSBLIB's create time

Postby gycwolf » Thu Aug 15, 2013 11:31 am

Ed Goodman thank you very much.
The tool is very good. (^-^)
gycwolf
 
Posts: 11
Joined: Fri Aug 09, 2013 5:49 pm
Has thanked: 1 time
Been thanked: 0 time

Next

Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post