On 2017-04-10, at 09:38, Ward, Mike S wrote:

> Hello, list friends. I was wondering if one of you could give me a little 
> help with a time problem that I have not been able to solve. I have the need 
> to provide the number of seconds since 1970 for a project that I'm working 
> on. I have been using a combination of the STCK and the CONVTOD to try and 
> get the results, but I'm just not that good at math or time functions. If 
> someone could steer me in the right direction I would really appreciate it.
>   
Any particular date in 1970?

STCK (Doesn't sound as if you need STCKE.)
(Adjust with CVTLSO as desired.)
64-bit subtract 1970 value from STCK value.  (Overflow likely; use SL)
Divide by 4096.
Divide by 1000000.

(z/OS UNIX time() function gives this directly.)

-- gil

Reply via email to