easy solution :
1) create a data area to hold a process/don’t process flag (in case you ever need to end the program, you can be sure it ends gracefully)
2) create a CL to wrap around the program that simply loops through 1) check data area for the continue flag 2) execute the program 3) delay x seconds
3) submit the CL to batch
We have several jobs that do this, we control the process flag as 1) the program checks that the flag is ‘N’ before beginning, if the flag is ‘N’, the program sets the flag to ‘Y’, then at each loop, it checks to be sure the flag is ‘Y’ if it’s ‘N’ it drops out of the loop, and the job ends, we then have two menu options we use, the first will submit the job, the second will set the flag to ‘N’ (after the current delay, the program will exit gracefully)
The whold process is much simpler then I’m probably making it sound. good luck.