End Job Watcher (ENDJW)

The End Job Watcher (ENDJW) command ends a Job Watcher collection.

Restrictions:

Parameters

Keyword Description Choices Notes
COL Collection Name, *SELECT Optional
LIB Library Name Optional

Collection (COL)

Specifies the Job Watcher collection to end.

*SELECT
A list of active Job Watcher collections will be displayed for user selection. This list will also identify the job in which each collection is running. This value is valid only if the command is run in an interactive job.
name
Specify the name of the collection which will be ended. The collection name is the same as the name of the member where data is being written.

Library (LIB)

Specifies the library of the Job Watcher collection to end.

Note: A value must be provided for this parameter if a collection name is specified on the Collection (COL) parameter.

name
Specify the name of the library where data is being written for this collection.

Examples

Example 1: End a Job Watcher Collection

ENDJW   COL(MYMBR) LIB(MYLIB)

This command will end the Job Watcher collection which is writing data to member MYMBR in the Job Watcher database files in library MYLIB.

Example 2: Select a Job Watcher Collection to End From a List

ENDJW   COL(*SELECT)

This command will display a list of active Job Watcher collections from which the user can select the collection to end.

Error messages

*ESCAPE Messages

CPF2401
Not authorized to library &1.
CPF9810
Library &1 not found.
CPF9812
File &1 in library &2 not found.
CPF9815
Member &5 file &2 in library &3 not found.
CPFB518
The user does not have the required authority.
CPFB51B
Option *SELECT is only valid if the command is being run interactively.