SYSTIME LONG is there to Discplay HHMMSSDD?



All other tools like QACenter, Strobe, Endevor, Telon, APAS, Scheduler, Auditor, DATA-XPERT, CoolGen, Intertest, AdvantageGen, COBTEST etc.

SYSTIME LONG is there to Discplay HHMMSSDD?

Postby debo » Wed Jun 13, 2012 3:42 pm

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.
debo
 
Posts: 19
Joined: Sat Apr 17, 2010 5:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

Postby Akatsukami » Wed Jun 13, 2012 4:27 pm

The CURRENT-DATE function will return the current date and time, including hundreds of a second (your "DD").
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

Postby debo » Wed Jun 13, 2012 4:35 pm

Hi,

I think that will work only in COBOL if you use ACCEPT FUNCTION CURRENT-DATE. Any possibility in Ezytrieve?
debo
 
Posts: 19
Joined: Sat Apr 17, 2010 5:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

Postby Robert Sample » Wed Jun 13, 2012 4:42 pm

Easytrieve is a vendor product, not related in any way to Language Environment. Topic has been moved.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

Postby Akatsukami » Wed Jun 13, 2012 4:45 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: SYSTIME LONG is there to Discplay HHMMSSDD?

Postby dick scherrer » Wed Jun 13, 2012 7:19 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to All Other Tools