End Job Watcher (ENDJW)
Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The End Job Watcher (ENDJW) command ends a Job Watcher collection.
Restrictions:
- To use this command, you must have service (*SERVICE) special authority, or be authorized to the Job Watcher function of the operating system. The Change Function Usage (CHGFCNUSG) command, with a function ID of QIBM_SERVICE_JOB_WATCHER, can be used to change the list of users that are allowed to use this command.
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
COL | Collection | Name, *SELECT | Optional |
LIB | Library | Name | Optional |
Top |
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.
Top |
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.
Top |
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.
Top |
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.
Top |