View previous topic :: View next topic
|
Author |
Message |
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
I'm learning to interpret DB2 TRACE output, and there is something I do not understand, so I post here , expecting some expert can help me on this.
In the IBM book:<DB2 10 for z/OS Managing Performance>, on page 613, we can see there is a portion on how to interpret DB2 trace output sent to SMF.
Quote: |
0030 9EEC Time (field SM102TME)
0093 018F Date (field SM102DTE)
|
I cannot understand how X'0030 9EEC' is converted to time , and how X'0093 018F' is converted to Date.
Can someone help on this ? thanks very much! |
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
I believe :
SM102TME is binary midnight-seconds with 2 decimals
SM102DTE is a packed julian date CYYDDD
making
00309EEC = 31864,12 sec = 08:51:04,12
0093018F = 1993-018 or 18 january 1993 |
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
GuyC wrote: |
I believe :
SM102TME is binary midnight-seconds with 2 decimals
SM102DTE is a packed julian date CYYDDD
|
thank u very much.
Can you tell me how you get this information?
Even google cannot provide me it.
Thank you in advance. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Search for : SMF timestamp |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Can you tell me how you get this information? |
by googling with
db2 smf record layout
or looking at the SMF manual for Your level of zOS
z/OS V1Rxx.x MVS System Management Facilities (SMF)
which most probably will redirect You to
IBM DB2 Administration Guide.
anyway the timestamps IIRC are all of the same format
the description of any one of them will fit |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Another example of using binary would be to issue a TIME Macro (SVC 11), where the Julian-Date is returned in R1, with a format of X'01YYDDDF'.
If you add X'1F000000' to R1, you'd have a century-compliant Julian-Date of X'20YYDDDF'. This can be done with an AFI (Add Fullword Immediate) instruction, where the X'1F000000' is part of the instruction, eliminating an LTORG Fetch.
Otherwise, you'd have to STORE R1 in a workarea, add P'1900000' to the value and OI the sign-nibble back to an X'F', for a clean UNPK. |
|
Back to top |
|
|
|