I just got this from the programmers. Any ideas on the best way to schedule?
we get a file from the fed that will run. I will trigger QAPPDAMJ off of that job. It will only run 4 times a day.
QAPPDAMJ ---- this JOB will run 4 times a day
After the 4th GOOD EOJ of QAPPDAMJ, please execute: QAPPDAMC
The only thing I can think of would require writing a program that does LRLOG,JOB=QAPPDAMJ that is triggered by QAPPDAMJ and in that program you can 'look' to see how many times it has executed and send a special return code--having an ARFSET that is executing a DEMAND of QAPPDAMC if the the return code says to. Question here is how many times will the data set be created? Do you know? What happens if a 6th or 7th or 8th run of the job happens?
Of course, you should never use ARF on a good completion so you would also have to set the return code as failing on the DB.1 and then force complete.
My solution was to schedule a job at a certain time when the last job ran. Should work but isn't elegant.