Page 1 of 1

Accept time in format HH:MM:SS:MSS format

PostPosted: Tue Feb 25, 2020 12:02 am
by gadde9
Hi All,

I have a situation where I need to accept the current time in format "HH:MM:SS:MSS" where MSS is milliseconds.
This I have to do it in my CICS program with assembler, can you suggest how this can be achieved. I used the below code,

EXEC CICS ASKTIME ABSTIME(UTIME)

EXEC CICS FORMATTIME ABSTIME(UTIME)
TIME(TEMP_TIME_FIELD) TIMESEP(':')
MILLISECONDS(TEMP_MILLISECONDS_FIELD)

What should be the length of the variable "TEMP_MILLISECONDS_FIELD"
I defined: TEMP_TIME_FIELD AS CL8 and TEMP_MILLISECONDS_FIELD as CL3