I have a job that runs a client program to generate reports from it.
The first task kills any running clients.
The second generates reports by manipulating the client software.
The third looks for current files created by the previous task.
If the files are not current, I tell the job to run from the beginning, from the kill to the end again.
We get error notices on every failed attempt, which is what we want to happen.
I would like to only allow for 2 or 3 error loop so I don't end up with an infinite loop.
How can I accomplish this?
I can't use the try routine from the individual task, because number three checks for current files from number two.