Very clever solution.

Actually with some additional cleverness it would work for a period longer
than 24 hours, right?

The trick would be to add instead the STCK value for midnight on the morning
of December 31. Then, for example, a period of 2 days, 5 hours, 31 minutes,
... would be formatted as 19720102 0531... and you could just discard the
197201. This would work for a period of up to 31 days, 23 hours and 59+
minutes.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jim Mulder
Sent: Monday, June 08, 2015 11:44 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: STCK question

  If you know that the time difference will be less than 24 hours,
you can add X'8126D60E46000000'   (the TOD value at midnight on Jan 1, 
1972),
and pass that to STCKCONV or BLSUXTOD, and just use the time portion of the
date/time that is returned. 

Jim Mulder   z/OS System Test   IBM Corp.  Poughkeepsie,  NY

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to