On 2015-11-16, at 15:19, Dougie Lawson wrote: > Rather than re-inventing a wheel why not use the Language Environment > callable service CEELOCT (get current local date or time) > https://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceea300/clcloct.htm%23clcloct?lang=en > > Which should be CICS-friendly. > But does it meet the OP's performance requirement?
> If you have to do it in assembler stop using STCK or STCKE and consider > using STCKF which gets a "fuzzy" store clock value because doesn't stop all > the other processors with a timer interrupt. Both IMS and DB2 have > re-written their code that needs a STCK value but doesn't need it to be > guaranteed as unique to use STCKF and have seen some incredible performance > improvements. > The OP has alleged that the TOD clock value (STCK) is an input parameter, so STCK(E) performance is irrelevant. -- gil