Command reference / job

CHGJOBSCDE

Change Job Schedule Entry

Changes the fields of an existing entry in the job schedule. Parameters that are not given keep the value of the entry (*SAME). Changing the schedule fields (FRQ, SCDDATE, SCDDAY, SCDTIME, RELDAYMON, OMITDATE) recomputes the entry's next submission date from the current date and time.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

JOB Job name

Specifies the name of the job schedule entry to change. With ENTRYNBR(*ONLY) the name must designate exactly one entry.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

ENTRYNBR Entry number

Specifies the entry number of the entry to change, for a job name that several entries share.

Type
*INT4
Required
No
Default
*ONLY
Range
1 to 999999
Case
Uppercase

Suggested / special values: *ONLY

*ONLY
The entry is identified by the job name alone; the command fails when several entries have that name.

CMD Command to run

Specifies the command the submitted job runs, replacing the command of the entry.

Type
*CMDSTR
Required
No
Default
*SAME
Case
Uppercase

FRQ Frequency

Specifies how often the entry is submitted.

Type
*CHAR
Required
No
Default
*SAME
Length
8
Case
Uppercase

Allowed values: *SAME, *ONCE, *WEEKLY, *MONTHLY, *YEARLY

*SAME
The frequency of the entry is kept.
*ONCE
The entry is submitted once.
*WEEKLY
The entry is submitted every week.
*MONTHLY
The entry is submitted every month.

SCDDATE Schedule date

Specifies the date of the entry, used as the first submission date and as the monthly anchor day. Give SCDDAY(*NONE) with a date, and SCDDATE(*NONE) with schedule days.

Type
*DATE
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *CURRENT, *MONTHSTR, *MONTHEND, *NONE

*SAME
The schedule date of the entry is kept.
*CURRENT
The current date is used.
*MONTHSTR
The first day of the month is used.
*MONTHEND
The last day of the month is used.
*NONE
No schedule date is used; the entry follows its schedule days.

SCDDAY Schedule day

Specifies the days of the week on which the entry is submitted.

Type
*CHAR
Required
No
Default
*SAME
Length
6
List limit
7
Case
Uppercase

Suggested / special values: *MON, *TUE, *WED, *THU, *FRI, *SAT, *SUN, *SAME, *NONE, *ALL

*SAME
The schedule days of the entry are kept.
*NONE
No schedule day is used; the entry follows its schedule date.
*ALL
The entry is submitted every day.

SCDTIME Schedule time

Specifies the time of day at which the entry is submitted.

Type
*TIME
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *CURRENT

*SAME
The schedule time of the entry is kept.
*CURRENT
The current time of day is used.

SAVE Save entry after submission

For a *ONCE entry, specifies whether the entry stays in the job schedule after it is submitted.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

Allowed values: *SAME, *NO, *YES

*SAME
The save action of the entry is kept.
*NO
The entry is discarded after it is submitted.
*YES
The entry stays in the job schedule after it is submitted.

OMITDATE Omit date

Replaces the list of up to 20 dates on which the entry is not submitted.

Type
*DATE
Required
No
Default
*SAME
List limit
20
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The omit dates of the entry are kept.
*NONE
The entry has no omit dates.

RCYACN Recovery action

Specifies what happens when the entry could not be submitted at its scheduled time.

Type
*CHAR
Required
No
Default
*SAME
Length
7
Case
Uppercase

Allowed values: *SAME, *SBMRLS, *SBMHLD, *NOSBM

*SAME
The recovery action of the entry is kept.
*SBMRLS
The missed job is submitted in released status.
*SBMHLD
The missed job is submitted in held status.
*NOSBM
The missed job is not submitted.

RELDAYMON Relative day of month

For a *MONTHLY entry scheduled with SCDDAY, specifies which occurrence of the named weekdays in the month is submitted.

Type
*CHAR
Required
No
Default
*SAME
Length
6
List limit
5
Case
Uppercase

Allowed values: *SAME, *NONE, 1, 2, 3, 4, 5, *LAST

*SAME
The relative day of month of the entry is kept.
*NONE
Every occurrence of the named days is submitted.
*LAST
The last occurrence of the named days is submitted.

JOBD Job description

Specifies the job description used by the submitted job.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *USRPRF

*SAME
The job description of the entry is kept.
*USRPRF
The job description named in the user profile of the job is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job description Job description

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

JOBQ Job queue

Specifies the job queue to which the entry is submitted.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *JOBD

*SAME
The job queue of the entry is kept.
*JOBD
The job queue named in the job description of the entry is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job queue Job queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

USER User

Specifies the user profile under which the submitted job runs.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *CURRENT, *JOBD

*SAME
The user profile of the entry is kept.
*CURRENT
The user profile of the job that changes the entry is used.
*JOBD
The user profile named in the job description of the entry is used.

MSGQ Message queue

Specifies the message queue to which the submitted job sends its messages.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *USRPRF, *NONE

*SAME
The message queue of the entry is kept.
*USRPRF
The message queue named in the user profile of the job is used.
*NONE
The job does not send completion messages; error messages go to QSYSOPR.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Message queue Message queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

TEXT Text 'description'

Specifies the text description of the entry, up to 50 characters.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Mixed case

Suggested / special values: *SAME, *BLANK

*SAME
The text of the entry is kept.
*BLANK
The text is removed.

Examples

CHGJOBSCDE JOB(NIGHTLY) SCDTIME(010000)

Moves the NIGHTLY entry to 01:00 and keeps its frequency, days and job attributes.

IBM command documentation

Generated from os/cl/catalog/CHGJOBSCDE.json and os/cl/help/CHGJOBSCDE.json.