I found these pages helpful:

https://alcor.concordia.ca/~gpkatch/gdate-algorithm.html

https://alcor.concordia.ca/~gpkatch/gdate-method.html

The second page is referenced from the first one, so you really only need the 
first one.

According to the algorithm description on the second page, the technique uses a 
"year zero"  date as the root date, so an adjustment for the STCK(E) "zero 
date" of 01/01/1900 may need to be added.

HTH

Peter

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Victor Gil
Sent: Monday, November 16, 2015 9:41 AM
To: [email protected]
Subject: TOD conversion to display

Does anyone have a sample code which decrypts Time-of-Day [obtained via STCK] 
into displayable format?

I have several samples [inluding my own from around 2000] which extract the 
TIME portion, but now I need the DATE as well.

The reason I don't want to code STCKCONV is this is going to be used in a 
high-volume transaction process under CICS, so I'd like to minimize the 
overhead.

TIA!
-Victor Gil-  

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

Reply via email to