I have a batch process that takes in a number of input files - some of these have start/end dates for the records.
This all works fine until you want to restore back to a known state and re-run the process using a few day's worth of input data. If the start date on the records has already passed - then bam! Those records are rejected.
In the JOBD that the job runs against, I see there's a JOB DATE field. What I'm thinking is to change this from *SYSVAL to the value of the date that the job would normally have been run on.
This sounds exceedingly simple, but I think it just may work.
Can anyone please give their thoughts on:
- whether all programs run within the job will take on the JOB DATE and not the system date?
- whether there are any impacts on changing the job date?
- if the JOBD is the best place (or even the only place??) to be making this change?
fyi - I'm not an RPG programmer, nor do I have access to the source code.