Command reference / job

CHGJOBD

Change Job Description

Changes the job-related attributes of a job description object. Any attribute can be changed except the authority attribute. To change object authority, use the Grant Object Authority (GRTOBJAUT) or Revoke Object Authority (RVKOBJAUT) command.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

JOBD Job description

Specifies the name and library of the job description being changed. You cannot specify the job description QSYSJOBD, which is the system's backup job description. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*LIBL
All libraries in the thread's library list are searched until a match is found.
*CURLIB
The thread's current library is used. If none is set, QGPL 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

USER User

Specifies the name of the user profile associated with this job description. For interactive jobs, it is the default user name used to sign on without typing one. QSECOFR, QSPL, QDOC, QDBSHR, QRJE, QSYS, QLPAUTO, QLPINSTALL, QTSTRQS, and QDFTOWN are not valid.

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

Suggested / special values: *SAME, *RQD

*SAME
The user profile name does not change.
*RQD
A user name must be entered to use the job description. For work station entries, the user name is entered at sign-on.

JOBQ Job queue

Specifies the name and library of the default job queue where jobs submitted with this job description are placed. If the job queue does not exist when the job description is changed, a library qualifier is required.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The job queue does not change.
*LIBL
All libraries in the thread's library list are searched until a match is found.
*CURLIB
The thread's current library is used. If none is set, QGPL 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

JOBPTY Job priority (on JOBQ)

Specifies the job queue scheduling priority for jobs that use this job description. The highest priority is 1 and the lowest is 9.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 9
Case
Uppercase

Suggested / special values: *SAME

*SAME
The scheduling priority does not change.

OUTPTY Output priority (on OUTQ)

Specifies the output priority of spooled files produced by jobs that use this job description. The highest priority is 1 and the lowest is 9.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 9
Case
Uppercase

Suggested / special values: *SAME

*SAME
The output priority does not change.

PRTDEV Print device

Specifies the qualified name of the default printer device for this job. Spooled files go to the output queue named the same as the device, assuming the defaults are set on the printer file, job description, user profile, and workstation.

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

Suggested / special values: *SAME, *USRPRF, *SYSVAL, *WRKSTN

*SAME
The default printer device does not change.
*USRPRF
The printer device on the user profile associated with the job when it starts is used.
*SYSVAL
The printer device in system value QPRTDEV when the job starts is used.
*WRKSTN
The printer device assigned to the job's work station when the job starts is used.

OUTQ Output queue

Specifies the name and library of the default output queue for jobs that use this job description. It applies only to spooled printer files that specify *JOB for the output queue. If the output queue does not exist when the job description is changed, a library qualifier is required.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *USRPRF, *DEV, *WRKSTN

*SAME
The default output queue does not change.
*USRPRF
The output queue comes from the user profile associated with the job when it starts.
*DEV
The output queue named for the printer on the printer file's DEV parameter is used.
*WRKSTN
The output queue assigned to the job's work station when the job starts is used.
*LIBL
All libraries in the thread's library list are searched until a match is found.
*CURLIB
The thread's current library is used. If none is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Output queue Output 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 that briefly describes the object. Up to 50 characters, enclosed in apostrophes.

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

Suggested / special values: *SAME, *BLANK

*SAME
The text does not change.
*BLANK
No text is specified.

ACGCDE Accounting code

Specifies the accounting code logged to the system accounting journal QACGJRN for jobs that use this description. Shorter values are padded with blanks on the right. Setting a value other than *USRPRF requires authority to CHGACGCDE.

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

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

*SAME
The accounting code does not change.
*USRPRF
The accounting code comes from the user profile associated with the job.
*BLANK
An accounting code of 15 blanks is assigned.

PRTTXT Print text

Specifies the text printed at the bottom of each page. Up to 30 characters, enclosed in apostrophes.

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

Suggested / special values: *SAME, *SYSVAL, *BLANK

*SAME
The print text does not change.
*SYSVAL
The value in system value QPRTTXT is used.
*BLANK
No text is printed.

RTGDTA Routing data

Specifies the routing data used with this job description to start jobs. Up to 80 characters.

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

Suggested / special values: *SAME, *RQSDTA

*SAME
The routing data does not change.
*RQSDTA
Up to the first 80 characters of the RQSDTA request data are used as the routing data.

RQSDTA Request data or command

Specifies the request data placed as the last entry in the job's message queue for jobs that use this job description. Up to 256 characters. A CL command must be enclosed in apostrophes, with inner apostrophes doubled.

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

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

*SAME
The request data does not change.
*NONE
No request data is placed in the job's message queue.
*RTGDTA
The RTGDTA routing data is placed as the last entry in the job's message queue.

INLLIBL Initial library list

Specifies the initial user part of the library list for jobs that use this job description. Libraries are searched in the order listed, and duplicate library names are not allowed. Up to 250 libraries.

Type
*NAME
Required
No
Default
*SAME
Length
10
List limit
250
Case
Uppercase

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

*SAME
The initial user part of the library list does not change.
*SYSVAL
The default library list in system value QUSRLIBL is used when the job starts.
*NONE
The user part of the library list is empty; only the system portion is used.

INLASPGRP Initial ASP group

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

Suggested / special values: *SAME, *NONE

LOG Message logging

Specifies the message logging values that control the amount and type of information sent to the job log. It has three elements: logging level (0-4), severity (0-99), and message text level.

Type
*ELEM
Required
No
Case
Uppercase
*SAME
The value does not change (applies to each element).
*MSG
Only the message text is written to the job log.
*SECLVL
Both the message text and the message help are written to the job log.
*NOLIST
No job log is produced if the job ends normally. If it ends abnormally (end code 20 or higher), a job log is produced.
Elements in order

Level Level

Type
*INT4
Required
No
Default
*SAME
Range
0 to 4
Case
Uppercase

Suggested / special values: *SAME

Severity Severity

Type
*INT4
Required
No
Default
*SAME
Range
0 to 99
Case
Uppercase

Suggested / special values: *SAME

Text Text

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

Allowed values: *SAME, *MSG, *SECLVL, *NOLIST

LOGCLPGM Log CL program commands

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

Allowed values: *SAME, *NO, *YES

LOGOUTPUT Job log output

Specifies how the job log is produced when the job completes. Messages are written to a spooled file, unless the Control Job Log Output (QMHCTLJL) API directed them to a database file.

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

Allowed values: *SAME, *SYSVAL, *JOBLOGSVR, *JOBEND, *PND

*SAME
The value does not change.
*SYSVAL
The value in system value QLOGOUTPUT is used.
*JOBLOGSVR
A job log server produces the job log.
*JOBEND
The job produces its own job log, or a job log server does if the job cannot.
*PND
No job log is produced; it stays pending until removed.

JOBMSGQMX Job message queue maximum size

Type
*INT4
Required
No
Default
*SAME
Range
2 to 64
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL

JOBMSGQFL Job message queue full action

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

Allowed values: *SAME, *SYSVAL, *NOWRAP, *WRAP, *PRTWRAP

SYNTAX CL syntax check

Type
*INT4
Required
No
Default
*SAME
Range
0 to 99
Case
Uppercase

Suggested / special values: *SAME, *NOCHK

ENDSEV End severity

Type
*INT4
Required
No
Default
*SAME
Range
0 to 99
Case
Uppercase

Suggested / special values: *SAME

INQMSGRPY Inquiry message reply

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

Allowed values: *SAME, *RQD, *DFT, *SYSRPYL

HOLD Hold on job queue

Specifies whether jobs that use this job description are placed on the job queue in the hold condition. A held job stays held until released with RLSJOB or ended with ENDJOB or CLRJOBQ.

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

Allowed values: *SAME, *NO, *YES

*SAME
The hold condition does not change.
*NO
Jobs are not held when placed on the job queue.
*YES
Jobs are held when placed on the job queue.

DATE Job date

Type
*DATE
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SYSVAL

SWS Job switches

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

Suggested / special values: *SAME

DEVRCYACN Device recovery action

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

Allowed values: *SAME, *SYSVAL, *MSG, *DSCMSG, *DSCENDRQS, *ENDJOB, *ENDJOBNOLIST

TSEPOOL Time slice end pool

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

Allowed values: *SAME, *SYSVAL, *NONE, *BASE

ALWMLTTHD Allow multiple threads

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

Allowed values: *SAME, *NO, *YES

SPLFACN Spooled file action

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

Allowed values: *SAME, *SYSVAL, *KEEP, *DETACH

DDMCNV DDM conversation

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

Allowed values: *SAME, *KEEP, *DROP

WLCGRP Workload group

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

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

Examples

CHGJOBD JOBD(QGPL/QPGMR) JOBPTY(2) OUTPTY(2)

Jobs using the IBM-supplied QPGMR job description in QGPL run with job and output priority 2 instead of its original level 5.

CHGJOBD JOBD(INT4) USER(*RQD) RTGDTA(QCMDI) LOG(*SAME) ACGCDE('USERXYZ CODE123') TEXT(*BLANK)

Work station sign-on requires a password. Routing data is QCMDI, log settings are unchanged, the accounting code is set, and the text is blanked.

IBM command documentation

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