IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How X'0030 9EEC' is converted to time?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Nov 20, 2013 1:58 pm
Reply with quote

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

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed Nov 20, 2013 2:36 pm
Reply with quote

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

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Nov 20, 2013 3:24 pm
Reply with quote

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Nov 20, 2013 4:25 pm
Reply with quote

Search for : SMF timestamp
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Nov 20, 2013 4:30 pm
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Nov 21, 2013 4:53 pm
Reply with quote

Hey dejunzhu,

Check this Converting Binary Fields to Time of Day Format

Even this REXX Offers Tools for Automated Processing of SMF Data

Thanks,
Sushanth
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 21, 2013 6:58 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top