Hello,
We had that kind of problem with SM37.
We launch several process and need to get back the spools.
The jobs all have the same name, and the number of jobs is not constant.
We made a SM37 script that display all the jobs with the right name and then, get the spool on the first line of the list.
After that, the script delete the job. So, the next time you launch the script, the first line of the list is the next job.
It works, but for that you need to delete the jobs. That was not a problem for us, but it may be a problem for you.
And also for that, the user will have to launch two scripts: one for the transaction that creates the job and, when the job is done, one that get the spool and delete the job.
------------------------------
thierry.daclin@engie.com |
ENGIE | [City] |
------------------------------