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.
debo
Posts: 19
Joined: Sat Apr 17, 2010 5:26 pm
Skillset: JCL,VSAM,DB2,CICS
Referer: FRIEND

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.

User avatar
Akatsukami
Global moderator
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
Referer: ibmmainframes
Location: Bloomington, IL
Contact:

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

debo
Posts: 19
Joined: Sat Apr 17, 2010 5:26 pm
Skillset: JCL,VSAM,DB2,CICS
Referer: FRIEND

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?

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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.

User avatar
Akatsukami
Global moderator
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
Referer: ibmmainframes
Location: Bloomington, IL
Contact:

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:

Code: Select all

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
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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.