Hi Robert and Virgile.
The SQL function extracts CPF1164 messages from the history log - so it's the system value for QDATFMT, that controls the format of the date in the message, not your job date format.
This is the portion of the SQL where the timestamps are extracted - note the hardcoded date format 'MM/DD/YY' in the timestamp format function:

If you change the date format string to correspond to your system value QDATFMT and create the function in your own schema, it will works as intended.
------------------------------
Christian Jorgensen
IT System Administrator | CEAC member
Network of Music Partners A/S
------------------------------
Original Message:
Sent: Fri June 28, 2024 04:31 PM
From: Virgile VATIN
Subject: SYSTOOLS.ENDED_JOB_INFO() return ++++++++++++ Value
Hi Robert,
IBM Tech Support France give me an SQL function to bypass this problem. As Christian says it 's not a problem for OS in US version, but a problem for some other country.
I've try your query, not work, Ihave also +++++++++++++++. I've also try to modify parameters in strsql and services (F13) bfore open a case, you can modify date and time with no success.
Best Regards
------------------------------
Virgile VATIN
------------------------------
Original Message:
Sent: Fri June 28, 2024 03:56 PM
From: Robert Berendt
Subject: SYSTOOLS.ENDED_JOB_INFO() return ++++++++++++ Value
Tried to recreate the error with:
cl: CHGJOB DATFMT(*YMD) ;
select * from table (SYSTOOLS.ENDED_JOB_INFO( START_TIME => CURRENT DATE - 1 DAYS);
But that didn't seem to do it. Too bad, that would have been an easy work around.
------------------------------
Robert Berendt IBMChampion
Original Message:
Sent: Fri June 28, 2024 06:30 AM
From: Virgile VATIN
Subject: SYSTOOLS.ENDED_JOB_INFO() return ++++++++++++ Value
Hi,
Yes, It's not US version.
I have updated the DB2 PTFs on the partition, but I have the same thing. So I opened a case with IBM support
Thanks to all.
Best regards
------------------------------
Virgile VATIN
Original Message:
Sent: Fri June 28, 2024 05:27 AM
From: Christian Jorgensen
Subject: SYSTOOLS.ENDED_JOB_INFO() return ++++++++++++ Value
Hi.
The SYSTOOLS.ENDED_JOB_INFO table function is interpreting the message data in CPF1164 messages, but it gets the date wrong if you're not in US with dates on format MMDDYY!
IBM should fix this - requires some to report this issue - but meanwhile you can extract the source for SYSTOOLS.ENDED_JOB_INFO, change the code to correctly interpret your date format and create your fixed ENDED_JOB_INFO table function in a schema of your own.
HTH.
Best regards,
Christian
------------------------------
Christian Jorgensen
IT System Administrator
Network of Music Partners A/S