I have set a job to monitor a process on couple of as/400 systems.The job is to wait until the process stops then starts it. But the job that monitors the process completes assuming that it's not running though the process running on systems.
Any suggestions on how to fix this
Job Setup
PROCESS_MON ADR7
RUN DAILY
AGENT ADR7AGENT
PROCESS *ALL/SCIOWNER/ASCHEDULER
STATUS STOPPED WAIT
ENDJOB
PROCESS_MON ADR2
RUN DAILY
AGENT ADR2AGENT
PROCESS *ALL/SCIOWNER/ASCHEDULER
STATUS STOPPED WAIT
ENDJOB