Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How X'0030 9EEC' is converted to time?
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: 1278
Location: Belgium

PostPosted: Wed Nov 20, 2013 2:36 pm    Post subject:
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    Post subject:
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: 2422
Location: Netherlands, Amstelveen

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Nov 20, 2013 4:30 pm    Post subject: Reply to: How X'0030 9EEC' is converted to time?
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: 1013
Location: India

PostPosted: Thu Nov 21, 2013 4:53 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 21, 2013 6:58 pm    Post subject: Reply to: How X'0030 9EEC' is converted to time?
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts cics & real time monitoring icehat CICS 5 Wed Sep 07, 2016 2:29 am
No new posts Get system time in micro second or cl... lind sh CICS 11 Mon Sep 05, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us