CL Command Reference - CHGJOBJS
CL Command List > CHGJOBJS Reference
Description:
The Change Job using Job Scheduler (CHGJOBJS) command allows you to change an entry in the job schedule. Jobs can be a single job or a member of a group of jobs or an application. You can use this command to schedule a batch job to be submitted once, at a regular interval and so on, based on the schedule code you specify. You can schedule jobs with user-defined calendars, holiday exception calendars and fiscal year calendars.
The job schedule entry contains all of the information needed to submit the job, including the command the job runs, the job description and user profile under which the job is run, the job queue to which the job is submitted, the message queue to which messages are sent and so on.
At the date and time you specify or Advanced Job Scheduler calculates, the job is submitted to the specified job queue. This command does not guarantee that the job will begin running at the scheduled time, however. The job will not begin running if the job queue is held or attached to an inactive subsystem, or if the maximum number of active jobs allowed to run in the subsystem or on the system at one time has been reached.
Each job schedule entry is identified by a user-defined job, which is specified for the Job (JOB) parameter of this command.
Restrictions:
. You must have use (*USE) authority to the job description and the user profile.
. You must have *USE and add (*ADD) authorities to the message queue.
. You must have read (*READ) authority to the job queue and to all libraries associated with the specified objects.
. You must have *USE authority to the *ADDJOB function.
Examples:
Example 1: Changing a Job
CHGJOBJS JOB(JOB02) APP(ACCTG) SCDCDE(*DAILY)
FSCPERIOD(*ALL) TEXT(¡¯Change to JOB02¡¯)
This command changes job JOB02. The job¡¯s application is changed to the accounting application, and the job is changed to run according to schedule code *DAILY for all fiscal periods.