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.
SYSTIME LONG is there to Discplay HHMMSSDD?
- 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?
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
Re: SYSTIME LONG is there to Discplay HHMMSSDD?
Hi,
I think that will work only in COBOL if you use ACCEPT FUNCTION CURRENT-DATE. Any possibility in Ezytrieve?
I think that will work only in COBOL if you use ACCEPT FUNCTION CURRENT-DATE. Any possibility in Ezytrieve?
-
- 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?
Easytrieve is a vendor product, not related in any way to Language Environment. Topic has been moved.
- 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?
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
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: SYSTIME LONG is there to Discplay HHMMSSDD?
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.
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.
d.sch.