Change Data Library using JS (CHGDLJS)

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

The Change Data Library using JS (CHGDLJS) command allows you to change the monitor designator for a data library. The monitor designator determines whether a data library (Scheduling Environment) can be monitored. A Scheduling Environment must be monitored in order for scheduled jobs to submit automatically.

Top

Parameters

Keyword Description Choices Notes
DTALIB Data library Name Required, Key, Positional 1
MON Monitor *SAME, *YES, *NO Optional, Positional 2
MONJOBNAM Monitor job name Name, *SAME Optional
AUTOSTART Automatically start monitor *SAME, *YES, *NO Optional
TEXT Text Character value, *SAME, *NONE Optional
Top

Data library (DTALIB)

Specifies the data library to change. If you enter a data library that has not been added to IBM Advanced Job Scheduler for i , you will receive an error message.

This is a required parameter.

name
Specify the data library to be changed.
Top

Monitor (MON)

Specifies whether the data library can be monitored.

This is a required parameter.

*YES
The data library can be monitored. Use the Start Job Scheduler (STRJS) command to start the monitoring process.
*NO
The data library cannot be monitored. The data library cannot be changed to *NO if the monitor is currently active or if the data library is QUSRIJS.
Top

Monitor job name (MONJOBNAM)

Specifies the name of the monitor job. This name should be descriptive and relate to the scheduling environment associated with the data library.

This is a required parameter.

name
Specify the name of the job monitor job.
Top

Automatically start monitor (AUTOSTART)

Specifies whether the job monitor is to be automatically started after an IPL. The job monitor will not be automatically started if the Monitor field is set to *NO.

This is a required parameter.

*YES

The job monitor is to be automatically started after an IPL.

*NO

The job monitor will not be started after an IPL.

Top

Text (TEXT)

Specifies a text description for the data library.

*NONE
There is no text associated with this data libary.
character-value
Specify the text for the data library.
Top

Examples

Example 1: Change the monitor designator for a data library

CHGDLJS DTALIB(QUSRIJSPRD) MON(*YES)

This command changes the monitor designator for a data library to *YES. This will allow starting the monitor job for the data library.

Top

Error messages

Unknown
Top