Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 19:45:54 GMT
Don,
Not a "real solution" - but it might BECOME one if enough users on enough
platforms ask enough COBOL vendors to implement EARLY a feature planned for the
next revision of the ISO COBOL Standard.
A number of new date and time functions are included in the revision and
someinclude "fractional portions of a second" and there is a note that says,
"The implementor defines the maximum number of digit positions that may be
specified in the decimal fraction
portion of the seconds subfield of a time format; that maximum shall be greater
than or equal to nine."
Now WHAT information you are supposed to get back when the O/S doesn't support
this level of detail, I don't know!
(If you are interested in this support on z/OS, get a SHARE member to submit a
requirement; on VSE, get a WAVV member to do so; elsewhere, ask your "vendor of
choice").
--
Bill Klein
wmklein <at> ix.netcom.com
<don@xxxxxxxxxxx> wrote in message
news:8a5a1cc8-bd8c-418d-9c6a-9e00a9111ad9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
The current-date function only returns hundredth of a second.
Using mainframe assembler the micro-second clock counter can be
accessed but that's not standard COBOL and not portable across
platforms. In J2SE Java, there is the method System.nanotime() to get
the more accurate time of day in nano-secounds available from the host
system but that's not standard COBOL either.
Don Higgins
don@xxxxxxxxxxx
.
- 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: COBOL Time of Day in micro-seconds or nano-seconds
- Next by Date: Re: Opinions on approach, please...
- Previous by thread: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Next by thread: COBOL's 'COPY ABC.' = what in REXX
- Index(es):
Relevant Pages
|
|