Synchronisation with agent jobs
A client job can synchronise with one or more of its commanded jobs. The condition is that the "Job ID" assigned by the user at start-up via #MC_MovePath is present.
One or several events are waited for with
#WAIT MC_Status [JobID=.. , …]
and the known job ID. Events for #WAIT MC_Status are one or more of the four statuses MC_STARTED, MC_ABORTED, MC_ERROR, MC_DONE. If none of the parameters are specified when the call is made, this corresponds to the implicit specification of MC_DONE and MC_ABORTED.
Notice

Job IDs are stored in a history in order to return a correct status in a “later” request, even after the job is terminated/aborted. If the job ID specified is unknown because it was never commanded or is no longer in the history, an error is output.
Notice

The job ID history is deleted at program end.
It is therefore no longer possible to synchronise with jobs from previous (client) jobs. It is also not possible to synchronise with jobs from another client.