Page 1 of 1

SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 3:42 pm
by debo
Hi,

I have a Requirement to Writea record with Time in this Format. HHMMSSDD...I can get the time by ACCEPT SYSTIME. But it will come in HHMMSS..How to get that last DD ? I assume DD is Micro seconds..Is that right ?

Like SYSDATE-LONG,do we have SYSTIME-LONG in COBOL & Ezytrieve ? But i tried SYSTIME-LONG - its throwing Error..

Please help me.

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 4:27 pm
by Akatsukami
The CURRENT-DATE function will return the current date and time, including hundreds of a second (your "DD").

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 4:35 pm
by debo
Hi,

I think that will work only in COBOL if you use ACCEPT FUNCTION CURRENT-DATE. Any possibility in Ezytrieve?

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 4:42 pm
by Robert Sample
Easytrieve is a vendor product, not related in any way to Language Environment. Topic has been moved.

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 4:45 pm
by Akatsukami
debo wrote:Hi,

I think that will work only in COBOL if you use ACCEPT FUNCTION CURRENT-DATE.

ACCEPT FUNCTION? What version of COBOL are you running? The Enterprise COBOL syntax, IIRC, would be along the lines of:
Move Function CURRENT-DATE(9:8) to Variable.

Any possibility in Ezytrieve?

Don't know; I'm not a Easytrieve programmer.

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

PostPosted: Wed Jun 13, 2012 7:19 pm
by dick scherrer
Hello,

If the organization does not have a custom date/time callable routine, you can easily (or have some co-worker) write what you need in COBOL and call it from Easytrieve.

You might also open an issue with CA Support and ask if this is available on the install of the product.