We use %date() to get today's date in many programs. Sometimes we want to re-run with yesterday's date (or some date that is not today).
Is there a way to change this outside the RPG program?
Ideally something we can add to CL or the command line.
Changing system value QDATE is not useful, as it would affect all users.
Maybe I should go back to UDATE 0r *date for jobs I am sure will not run past midnight (but we have some of those).
So far my solution is to comment out %date() and replace with %date(102621: *MDY), recompile, rinse and repeat. Old, slow, annoying, but effective.
Is there a way to change this outside the RPG program?
Ideally something we can add to CL or the command line.
Changing system value QDATE is not useful, as it would affect all users.
Maybe I should go back to UDATE 0r *date for jobs I am sure will not run past midnight (but we have some of those).
So far my solution is to comment out %date() and replace with %date(102621: *MDY), recompile, rinse and repeat. Old, slow, annoying, but effective.






Comment