Re: COBOL Time of Day in micro-seconds or nano-seconds



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


.



Relevant Pages

  • Re: Cobol language dictionary page -- assignment complete?
    ... >> standard COBOL. ... > REMARKS in the IDENTIFICATION DIVISION was indeed standard COBOL according ... > 2002 COBOL continues to support fixed-form reference format, ...
    (comp.lang.cobol)
  • Re: Cobol language dictionary page -- assignment complete?
    ... >> standard COBOL. ... > REMARKS in the IDENTIFICATION DIVISION was indeed standard COBOL according ... > 2002 COBOL continues to support fixed-form reference format, ...
    (comp.lang.cobol)
  • Re: Perform forever
    ... > possible new feature for standard COBOL. ... > of a new reserved word FOREVER) over what the programmer might be able to ... > And since the programmer *can* accomplish this today through syntax like ... > another* way to do this in standard COBOL. ...
    (comp.lang.cobol)
  • Re: In answer to RW - again (was: Sorts (revised)
    ... Actually sp2 uses only the standard COBOL CALL statement (no extensions) to the ... > As indeed most other languages do. ...
    (comp.lang.cobol)
  • University of Washington COBOL positions
    ... The University of Washington has 3 positions for COBOL programmers. ... Department: COMPUTING & COMMUNICATIONS ... successful candidate will play a key role in developing and supporting ... applications on mainframe platforms and distributed databases, ...
    (comp.lang.cobol)