Question: How can we extract nano seconds in cics/cobol?

Answer: Computers do not record time in nanoseconds (only milliseconds) so there is no source for the information you are looking for. This applies to all computers not just those that run CICS.

To extract milliseconds use EXEC CICS ASKTIME ABSTIME(ABSOLUTE-TIME) and then use your own routine to convert ABSOLUTE-TIME (which is a straight count of milliseconds since 1st January 1900) to the format you require. Ths supplied CICS routines only extract seconds (and larger) from this field.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow