Good catch, indeed you do. F'16000000' not F'1600000'; 16M not 1.6M. Typo, my apologies.
Peter -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Tuesday, April 11, 2017 6:23 PM To: [email protected] Subject: Re: CONVTOD Help On 2017-04-11, at 15:48, Farley, Peter x23353 wrote: > A shorter approach would be to use the actual 1970-01-01 00:00:00 epoch date > in STCKE format: > > X'007D91048BCA0000' > > Subtract that value from the first 64 bits of STCKE and then divide by > F'1600000' to get seconds since the Unix epoch. > > Of note, a recent Metal C compile of that algorithm with ARCH(10) TUNE(10) > generates an add of the negative of the Unix epoch value to the STCKE value > and then divides by =F'1600000' (DSGF) to get the seconds value. > Do I see one zero too few somewhere? -- 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.
