PeteJohnston
Programmer
This is a follow-on from a thread about adding to the system time.
When I (and a few others by the look of that thread) want to convert a date held on a file to output it on a screen/report it is usually a case of calling an API or a CL-pgm to get the system date format then using select/when to decide which format (*MDY, *DMY, *EUR....) to use when doing the move. I've just discovered that there is a *JOBRUN parameter which automatically uses the job's date format without having to do the call and Select-group.
This is probably old news to you all but it may help someone in the future. PeteJ
(Contract Code-monkey)
It's amazing how many ways there are to skin a cat
(apologies to the veggies)
When I (and a few others by the look of that thread) want to convert a date held on a file to output it on a screen/report it is usually a case of calling an API or a CL-pgm to get the system date format then using select/when to decide which format (*MDY, *DMY, *EUR....) to use when doing the move. I've just discovered that there is a *JOBRUN parameter which automatically uses the job's date format without having to do the call and Select-group.
Code:
C *JOBRUN Move CharDate DateField
(Contract Code-monkey)
It's amazing how many ways there are to skin a cat
(apologies to the veggies)