Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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: 10350
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: 2504
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 Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us