The End Print Monitor (ENDPRTMON) command modifies the current job or system so that print monitoring no longer occurs. It does so by removing the QIBM_NOTIFY_CRTSPLF environment variable. When LEVEL(*JOB) is specified, the job running the command has its print monitoring ended. When LEVEL(*SYS) is specified, the system environment variable QIBM_NOTIFY_CRTSPLF is deleted and all print monitoring ends.
Monitor Level (LEVEL)
Specify the environment level (*JOB or *SYS) to remove the QIBM_NOTIFY_CRTSPLF environment variable. Removing this variable ends print monitoring for this job when LEVEL(*JOB) is specified, or for all jobs when LEVEL(*SYS) is specified.
- *JOB
- The QIBM_NOTIFY_CRTSPLF environment variable is removed from the environment for the job running the ENDPRTMON command. New SPOOL Files created in this job are no longer added to the data queue associated with the QIBM_NOTIFY_CRTSPLF environment variable.
- *SYS
- The QIBM_NOTIFY_CRTSPLF environment variable is removed from the system level environment. All print monitoring ends after the current SPOOL File (if any) has finished being processed by the print monitor.