Does he have a leap seconds issue? STCK needs leap seconds adjustment which I 
assume STCKCONV does. Does TIME MIC need that, or will it be redundant?

In any event you have time zone considerations. Does the OP want UTC or local 
time?

And I can hear @Gil firing up his keyboard right now to say that STCKCONV is 
inadequately documented ...

Wait a minute:

"MIC returns the time of day since midnight in microseconds. The value is 
returned as 8 bytes of information where bit 51 is equivalent to one 
microsecond."

How are you going to get a day and a year out of that?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Blaicher, Christopher Y.
Sent: Friday, October 20, 2017 2:08 PM
To: [email protected]
Subject: Re: Time Mic conversion

Take your microsecond value and shift it 12 bits to the left and use STCKCONV.

Chris Blaicher
Technical Architect
Mainframe Development
P: 201-930-8234  |  M: 512-627-3803
E: [email protected]

Syncsort Incorporated
2 Blue Hill Plaza #1563
Pearl River, NY 10965
www.syncsort.com

Data quality leader Trillium Software is now a part of Syncsort.


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of DanD
Sent: Friday, October 20, 2017 4:23 PM
To: [email protected]
Subject: Re: Time Mic conversion

Thanks Charles.

I searched back to 2000 and there's very little for "TIME MIC" or microseconds. 
 Nothing that I could find for it's conversion.  There's loads for STCK 
conversion which I already had old code for, and it's even easier now with 
services like STCKCONV.

DanD

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

________________________________



ATTENTION: -----

The information contained in this message (including any files transmitted with 
this message) may contain proprietary, trade secret or other confidential 
and/or legally privileged information. Any pricing information contained in 
this message or in any files transmitted with this message is always 
confidential and cannot be shared with any third parties without prior written 
approval from Syncsort. This message is intended to be read only by the 
individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any use, disclosure, copying or distribution of this message, in any form, is 
strictly prohibited. If you have received this message in error, please 
immediately notify the sender and/or Syncsort and destroy all copies of this 
message in your possession, custody or control.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to