Once I set a time and date for the simulated system clock, will repeated runs of the same job retrieve the same time, every time?
searchcancel
Once I set a time and date for the simulated system clock, will repeated runs of the same job retrieve the same time, every time?
book
Article ID: 62413
calendar_today
Updated On: 10-17-2023
Products
Licensing-CA
Issue/Introduction
CA Date Simulator offers two modes so you can decide if you wish each rerun of a job to simulate the same start time or if each rerun should appear to start in a timeline, based on a continuously running clock.
Environment
Release: Component: TWARP
Resolution
Start time mode: Set a time and date to which the simulated system clock will be reset each time the batch job starts. If you specify that a particular batch job is to have a simulated start time of 8:00 a.m. on 1/1/2010, then each time that job is started, it will appear to have started at that time and date. If the job requests the time four minutes after it starts, the time will be 8:04 a.m. If you run the job again in 15 minutes, the same request for the system time, 4 minutes into the job's run, will give a time of 8:04 a.m.
Current time mode: Set a time and date for the simulated system clock to start at the moment the SET command is issued. The clock continues to run and is not reset each time the job runs. Using the same example of a simulated time of 8:00 a.m. on 1/1/2010, if the job is run 5 minutes after the SET was issued and the request for time is 4 minutes into the job, the time returned will be 8:09 a.m. If the job runs again 15 minutes after the previous run started, the time returned by that call for the time will be 8:24 a.m.