¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

CURRENT-DATE and TIME in cobol MVS 3.8 - time is shown as HHMMSS. I use PIC 9(8). Result is as follows: DATE : 02/14/2


 

Hi
I use the current-date and time function in cobol. I am able to get the correct syntax for current-date but struggle to get the time to get milliseconds from this function. Any suggestions on how I can troubleshoot.
best regards
Dagfinn Dyngeland Hammar?I4 TIME : 103850?I I


 

¿ªÔÆÌåÓý

Try PIC X(8).

Air 2

On Feb 14, 2024, at 8:50 AM, Dagfinn Hammar <dagfinndh33@...> wrote:

?Hi
I use the current-date and time function in cobol. I am able to get the correct syntax for current-date but struggle to get the time to get milliseconds from this function. Any suggestions on how I can troubleshoot.
best regards
Dagfinn Dyngeland Hammar?I4 TIME : 103850?I I


 

You cant?get milliseconds.

In MVT cobol, you get HHMMSS.

image.png

Joe

On Wed, Feb 14, 2024 at 7:50?AM Dagfinn Hammar <dagfinndh33@...> wrote:
Hi
I use the current-date and time function in cobol. I am able to get the correct syntax for current-date but struggle to get the time to get milliseconds from this function. Any suggestions on how I can troubleshoot.
best regards
Dagfinn Dyngeland Hammar?I4 TIME : 103850?I I