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: 1281
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: 2433
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: 10256
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
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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