Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: Gerry Palmer <gpalmer@xxxxxxxxx>
- Date: Thu, 29 May 2008 21:40:32 -0400
On Thu, 29 May 2008 11:46:43 -0700 (PDT), "don@xxxxxxxxxxx"
<don@xxxxxxxxxxx> wrote:
All
Does anyone know of a "standard" or widely accepted way to get COBOL
time of day in micro-seconds or nano-seconds for use in generating
more accurate transaction time-stamp and for use in measuring
transaction turn-around time.
If you're talking IBM mainframe COBOL, the CURRENT-DATE value (the
date and/or time at which the request for the date and/or time was
issued as reported by the system on which the program runs) can be
obtained in several ways: with the COBOL "ACCEPT" statement, through
the COBOL "CURRENT-DATE" Intrinsic Function, and through the LANGUAGE
ENVIRONMENT "CEELOCT" Callable Service.
The LANGUAGE ENVIRONMENT CEELOCT Callable Service returns the current
local date or time in three formats:
-> LILIAN DATE (number of days since 14 October 1582)
-> LILIAN SECONDS (number of seconds since 00:00:00 14 October 1582)
-> GREGORIAN character string (format YYYYMMDDHHMISS999)
The GREGORIAN character string format of the CEELOCT Callable Service
resolves time to thousandth seconds (seconds plus three decimal
digits). The other two options, as best I know, resolve to hundredths
of a second only.
I'm not aware of any standard function that resolves to micro or nano
second granularity in this environment.
And if you're looking for portability across platforms, the LE
Callable Service is unlikely to satisfy your needs.
.
- References:
- COBOL Time of Day in micro-seconds or nano-seconds
- From: don@xxxxxxxxxxx
- COBOL Time of Day in micro-seconds or nano-seconds
- Prev by Date: Re: Opinions on approach, please...
- Next by Date: Oracle optimization
- Previous by thread: COBOL Time of Day in micro-seconds or nano-seconds
- Next by thread: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Index(es):
Relevant Pages
|