Page 1 of 1

Job Date, System Date

Posted: Fri Jul 12, 2019 1:08 am
by Joerg Hamacher
Hi,

we are using *MONTH / *DAY / *YYYYC / *TIME for writing protocol files into IFS from inside a batch job.
Problem is that *MONTH / *DAY / *YYYYC seem to be the job values of the day when the batch job was started.
When the job runs overnight these values do not change - *TIME is always correct.

So when the batch job starts today (11th of July) and runs until tomorrow morning a file created 10 minutes after midnight will be named
2019_07_11_000010 instead of 2019_07_12_000010...

Are there other system values that we should use instead of *MONTH / *DAY / *YYYYC ?

Best regards,
Joerg

Re: Job Date, System Date

Posted: Fri Jul 12, 2019 4:17 am
by atostaine
#STD_DTIMX.now will give you the correct time stamp. You could extract the values from there.

Or #Std_Datex.now and #std_Timx.now