>>A step in deriving GMT from TOD is to subtract CVTLSO.  I assume the TIME
macro does this.  And user processes are made non-dispatchable curing a
leap second for timestamp consistency.

But I imagine a remaining race condition.  If CVTLSO is accessed and STCK
is issued on opposite sides of a leap second, the derived GMT can be in
error by nearly a second.  That could be avoided by:
TRY  fetch CVTLSO
     STCK
    compare fetched value to CVTLSO
    BNE TRY

>Does TIME macro do that?  Is there a better way?

The TIME macro service routine does not do that.  I have never seen any code in 
z/OS that does.

Jim Mulder


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

Reply via email to