Hi Steve,
A possible approach that may work depending on the nature of your tasks is to use the stepname to differentiate the tasks. For example, if the jobname of your tasks is SSMTASK and you have 2 tasks with the same name you would define 2 entries in the resource table:
Name:
SSMTASK.STEPA
SSMTASK.STEPB
The "jobname" column would be the same for the 2 tasks "SSMTASK".
You would need to start the tasks using the command S SSMTASK.STEPA and S SSMTASK.STEPB for example.
To detect the termination, you can use an EOS rule as it allows checking the stepname of the task that finished. This can work if the task has only one step.
For example:
)EOS SSMTASK
)PROC
JOB = EOS.JOBNAME
STEP = EOS.STEPNAME
address SQL
"UPDATE STCTBL SET CURRENT_STATE='DOWN'",
"WHERE NAME = '"JOB"."STEP"'"
Let me know if this helps.
Regards,
Mario