You can use z/OS® system commands to start, stop, cancel, or modify the agent for z/OS.
You can enter these commands from a Multiple Console Support (MCS) console or from a program such as the Spool Display and Search Facility (SDSF). In both cases, the terminal or console operator must have the required authority to enter operator commands.
/S procnamewhere procname is the agent for z/OS JCL or started task procedure name.
If the agent is to run as a batch job, do not start it with an operator command. Instead, submit a batch job with the same name as the agent for z/OS subsystem. JES starts this job in the same manner as any ordinary job.
Because the agent for z/OS uses JES exits, among other things, to track the progress of z/OS jobs, it does not start before JES is active.
/P procnamewhere procname is the agent for z/OS JCL procedure name.
If the agent for z/OS is still active 5 minutes after you enter the STOP operator command, you must cancel it.
/C procnamewhere procname is the agent for z/OS JCL procedure name.
/C procname,DUMPThis causes the agent for z/OS to end with a dump on the SYSMDUMP file (if the ddname is in the started-task JCL).
/F procname,modifyoptionwhere:
Note that stopping the Event Writer puts the agent for z/OS in OFFLINE status (shown as UNAVAILABLE by dynamic workload broker). Jobs submitted while the agent is OFFLINE are shown in the READY status. Jobs that were submitted but not yet run when the agent went OFFLINE are placed in the WAIT status and moved to FAIL when the timeout configured for dynamic workload broker expires.
You can only start a task that has stopped earlier in the current session. If you attempt to start a started subtask or stop a stopped subtask, error message EELZ049W is issued, and no action is taken.