End Monitor for OnDemand (ENDMONOND)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The End Monitor for OnDemand (ENDMONOND) command allows you to end a currently active monitor for an output queue or a directory.

Top

Parameters

Keyword Description Choices Notes
TYPE Type *OUTQ, *DIR Optional
OUTQ Output queue Qualified object name Optional, Positional 1
Qualifier 1: Output queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
DIR Directory Path name Optional
NBRMON Number of monitors to end *ALL, *ONE Optional
Top

Type (TYPE)

Specifies the type of monitor to end.

*OUTQ
Output queue monitor
*DIR
Directory monitor
Top

Output queue (OUTQ)

Specifies the name and library of the output queue for which a monitor is active and is to be ended. A value must be provided if TYPE(*OUTQ) is specified.

Qualifier 1: Output queue

name
Specify the name of the output queue for which the monitor is to be ended.

Qualifier 2: Library

*LIBL
All libraries in the job's library list are searched until the first match is found.
*CURLIB
The current library for the job is where the output queue is located. If no library is specified as the current library for the job, QGPL is used.
name
Specify the name of the library where the output queue is located.
Top

Directory (DIR)

Specifies name of the directory for which a monitor is active and is to be ended. A value must be provided if TYPE(*DIR) is specified.

Top

Number of monitors to end (NBRMON)

Specifies the number of monitors to end.

*ALL
Any active monitor for the output queue specified in the parameter OUTQ or the directory specified in the parameter DIR is ended.
*ONE
One monitor is ended.
Top

Examples

Example 1: Simple Example

ENDMONOND OUTQ(QUSRRDARS/ONDEMANDQ)

This command issues a request to end the OnDemand Common Server output queue monitor for the output queue specified.

Example 2: More Complex Example

ENDMONOND TYPE(*DIR) DIR('/MYDIR')

This command issues a request to end the OnDemand Common Server directory monitor for the directory specified.

Top

Error messages

*ESCAPE Messages

RDR0189
Output queue &1 in library &2 not found.
RDR0190
Output queue &1 in library &2 is not being monitored or the monitor has already been ended.
RDR0324
The monitor for output queue &1 in library &2 is already being canceled.
CPF1002
Cannot allocate object &1.
CPF1040
Maximum number of objects allocated on system.
CPF1085
Objects not allocated.
Top