Change Job Description (CHGJOBD)

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

The Change Job Description (CHGJOBD) command changes the job-related attributes contained in a job description object. Any attribute can be changed, except for the authority attribute. Refer to the Revoke Object Authority (RVKOBJAUT) command and Grant Object Authority (GRTOBJAUT) command for more information on changing object authorizations.

Restrictions:

  1. To use this command, have:

    • object operational (*OBJOPR), object management (*OBJMGT), and read (*READ) authority to the job description and execute (*EXECUTE) authority to the library containing that job description.

    • use (*USE) authority to the user profile specified in the User (USER) parameter.

  2. To change the Accounting code (ACGCDE) parameter to a value other than *USRPRF, have use (*USE) authority to the Change Accounting Code (CHGACGCDE) command.

Top


 

Parameters

Keyword Description Choices Notes
JOBD Job description Qualified object name Required, Key, Positional 1
Qualifier 1: Job description Name
Qualifier 2: Library Name, *LIBL, *CURLIB
JOBQ Job queue Single values: *SAME
Other values: Qualified object name
Optional, Positional 3
Qualifier 1: Job queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
JOBPTY Job priority (on JOBQ) 1-9, *SAME Optional
OUTPTY Output priority (on OUTQ) 1-9, *SAME Optional
PRTDEV Print device Name, *SAME, *USRPRF, *SYSVAL, *WRKSTN Optional
OUTQ Output queue Single values: *SAME, *USRPRF, *DEV, *WRKSTN
Other values: Qualified object name
Optional
Qualifier 1: Output queue Name
Qualifier 2: Library Name, *LIBL, *CURLIB
TEXT Text 'description' Character value, *SAME, *BLANK Optional
USER User Name, *SAME, *RQD Optional, Positional 2
ACGCDE Accounting code Character value, *SAME, *USRPRF, *BLANK Optional
PRTTXT Print text Character value, *SAME, *SYSVAL, *BLANK Optional
RTGDTA Routing data Character value, *SAME, *RQSDTA Optional
RQSDTA Request data or command Character value, *SAME, *NONE, *RTGDTA Optional
INLLIBL Initial library list Single values: *SAME, *SYSVAL, *NONE
Other values (up to 250 repetitions): Name
Optional
INLASPGRP Initial ASP group Name, *SAME, *NONE Optional
LOG Message logging Element list Optional
Element 1: Level 0-4, *SAME
Element 2: Severity 0-99, *SAME
Element 3: Text *SAME, *MSG, *SECLVL, *NOLIST
LOGCLPGM Log CL program commands *SAME, *NO, *YES Optional
LOGOUTPUT Job log output *SAME, *SYSVAL, *JOBLOGSVR, *JOBEND, *PND Optional
JOBMSGQMX Job message queue maximum size 2-64, *SAME, *SYSVAL Optional
JOBMSGQFL Job message queue full action *SAME, *SYSVAL, *NOWRAP, *WRAP, *PRTWRAP Optional
SYNTAX CL syntax check 0-99, *SAME, *NOCHK Optional
ENDSEV End severity 0-99, *SAME Optional
INQMSGRPY Inquiry message reply *SAME, *RQD, *DFT, *SYSRPYL Optional
HOLD Hold on job queue *SAME, *NO, *YES Optional
DATE Job date Date, *SAME, *SYSVAL Optional
SWS Job switches Character value, *SAME Optional
DEVRCYACN Device recovery action *SAME, *SYSVAL, *MSG, *DSCMSG, *DSCENDRQS, *ENDJOB, *ENDJOBNOLIST Optional
TSEPOOL Time slice end pool *SAME, *SYSVAL, *NONE, *BASE Optional
ALWMLTTHD Allow multiple threads *SAME, *NO, *YES Optional
SPLFACN Spooled file action *SAME, *SYSVAL, *KEEP, *DETACH Optional
DDMCNV DDM conversation *SAME, *KEEP, *DROP Optional

Top

 

Job description (JOBD)

Specifies the name and library of the job description being changed.

You cannot specify the job description QSYSJOBD on this parameter. This job description is the backup job description for the system and cannot be changed by the user.

This is a required parameter.

Qualifier 1: Job description

name

Specify the name of the job description.

Qualifier 2: Library

*LIBL

All libraries in the thread's library list are searched until a match is found.

*CURLIB

The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.

name

Specify the library where the job description is located.

Top

 

Job queue (JOBQ)

Specifies the name and library of the default job queue where jobs submitted using this job description are placed.

Single values

*SAME

The job queue does not change.

Qualifier 1: Job queue

name

Specify the name of the job queue.

Qualifier 2: Library

*LIBL

All libraries in the thread's library list are searched until a match is found.

*CURLIB

The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.

name

Specify the library where the job queue is located.

If the job queue does not exist when the job description is changed, a library qualifier must be specified because the qualified job queue name is kept in the job description.

Top

 

Job priority (on JOBQ) (JOBPTY)

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

*SAME

The scheduling priority does not change.

1-9

Specify the scheduling priority of jobs that use this job description.

Top

 

Output priority (on OUTQ) (OUTPTY)

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

*SAME

The output priority for spooled output does not change.

1-9

Specify a value ranging from 1 through 9 for the output priority of the spooled output files that are produced by jobs that use this job description. The highest priority is 1 and the lowest priority is 9.

Top

 

Print device (PRTDEV)

Specifies the qualified name of the default printer device for this job. If the printer file being used to create the output specifies to spool the file, the spooled file is placed on the device's output queue, which is named the same as the device.

This assumes the defaults are specified on the Output queue (OUTQ) parameter for the printer file, job description, user profile and workstation.

*SAME

The default printer device does not change.

*USRPRF

The printer device specified on the user profile associated with the job at the time the job is started is used

*SYSVAL

The value in the system value QPRTDEV at the time the job is started is used as the printer device.

*WRKSTN

The printer device assigned to the work station that is associated with the job at the time the job is started is used.

name

Specify the printer device that is used by jobs that use this job description.

Top

 

Output queue (OUTQ)

Specifies the name and library of the output queue used as the default output queue for jobs that use this job description. This parameter applies only to spooled printer files that specify *JOB for the output queue.

Single values

*SAME

The default output queue does not change.

*USRPRF

The output queue name for jobs using this job description is taken from the user profile associated with the job at the time the job is started.

*DEV

The output queue associated with the printer specified on the Device (DEV) parameter of the printer file is used. The output queue has the same name as the printer. The printer file DEV parameter is determined by the Create Printer File (CRTPRTF), Change Printer File (CHGPRTF), or the Override with Printer File (OVRPRTF) commands.

This assumes the defaults were specified on the Output queue (OUTQ) parameter for the printer file, job description, user profile, and workstation.

*WRKSTN

The output queue used with this job description is the output queue assigned to the work station that is associated with the job at the time the job is started.

Qualifier 1: Output queue

name

Specify the name of the output queue.

Qualifier 2: Library

*LIBL

All libraries in the thread's library list are searched until a match is found.

*CURLIB

The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.

name

Specify the library where the output queue is located.

If the output queue does not exist when the job description is changed, a library qualifier must be specified, because the qualified output queue name is kept in the job description.

Top

 

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*SAME

The text, if any, is not changed.

*BLANK

No text is specified.

character-value

Specify no more than 50 characters of text, enclosed in apostrophes.

Top

 

User (USER)

Specifies the name of the user profile associated with this job description. The names QSECOFR, QSPL, QDOC, QDBSHR, QRJE, QSYS, QLPAUTO, QLPINSTALL, QTSTRQS, and QDFTOWN are not valid entries for this parameter.

*SAME

The name of the user profile does not change.

*RQD

A user name is required to use the job description. For work station entries, enter a user name when signing on at the work station; the associated user name becomes the name used for the job. *RQD is not valid for job descriptions specified for autostart job entries or for those used by the Batch Job (BCHJOB) command. It is valid on the Submit Job (SBMJOB) command only if *CURRENT is specified on the User (USER) parameter.

name

Specify the user name that identifies the user profile associated with batch jobs using this job description. For interactive jobs, this is the default user name used to sign on the system without typing a user name.

Top

 

Accounting code (ACGCDE)

Specifies the accounting code that is used when logging system resource use for jobs that use this description. If the job is submitted by the Submit Job (SBMJOB) command, the submitter's accounting code is used. To specify an accounting code other than *USRPRF, be authorized to the Change Accounting Code (CHGACGCDE) command.

*SAME

The accounting code does not change.

*USRPRF

The accounting code for jobs using this job description is obtained from the user profile associated with the job.

*BLANK

An accounting code of 15 blanks is assigned to jobs that use this job description.

character-value

Specify the accounting code for jobs that use this job description and have accounting statistics logged in the system accounting journal QACGJRN. If less than 15 characters are entered, the string is padded with blanks on the right.

Top

 

Print text (PRTTXT)

Specifies the printing of a line of text at the bottom of each page.

*SAME

The print text does not change.

*SYSVAL

The value in the system value QPRTTXT is used.

*BLANK

No text is printed.

character-value

Specify the character string that is printed at the bottom of each page. A maximum of 30 characters can be entered enclosed in apostrophes.

Top

 

Routing data (RTGDTA)

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

*SAME

The routing data does not change.

*RQSDTA

Up to the first 80 characters of the request data specified on the Request data or command (RQSDTA) parameter are used as the routing data for the job.

character-value

Specify the routing data for jobs that use this job description. A maximum of 80 characters can be typed (enclosed in apostrophes if necessary).

Top

 

Request data or command (RQSDTA)

Specifies the request data that is placed as the last entry in the job's message queue for jobs using this job description.

*SAME

The request data does not change.

*NONE

No request data is placed in the job's message queue.

*RTGDTA

The routing data specified on the Routing data (RTGDTA) parameter is placed as the last entry in the job's message queue.

character-value

Specify the character string that is placed as the last entry in the job's message queue as a single request. A maximum of 256 characters can be entered (enclosed in apostrophes if necessary). When a CL command is entered, it must be enclosed in single apostrophes, and where apostrophes would normally be used inside the command, double apostrophes must be used instead.

Top

 

Initial library list (INLLIBL)

Specifies the initial user part of the library list to be used for jobs using this job description.

Duplication of library names in the library list is not allowed.

*SAME

The initial user part of the library list does not change.

*SYSVAL

The system default library list is used for jobs that use this job description. The default library list contains the library names that were specified in the system value QUSRLIBL at the time a job using this job description is started.

*NONE

The user part of the library list is empty; only the system portion is used.

Other values (up to 250 repetitions)

name

Specify the library in the user part of the library list to be used for jobs using this job description.

Libraries are searched in the same order as they are listed here.

Top

 

Initial ASP group (INLASPGRP)

Specifies the initial setting for the auxiliary storage pool (ASP) group name for the initial thread of jobs using this job description. A thread can use the Set ASP Group (SETASPGRP) command to change its library name space. When an ASP group is associated with a thread, all libraries in the independent ASPs in the ASP group are accessible and objects in those libraries can be referenced using regular library-qualified object name syntax. The libraries in the independent ASPs in the specified ASP group plus the libraries in the system ASP (ASP number 1) and basic user ASPs (ASP numbers 2 - 32) form the library name space for the thread.

Restrictions:

  1. The job descriptions QGPL/QDFTJOBD and QGPL/QDFTSVR cannot be changed to specify the name of an ASP group. For these job descriptions, the INLASPGRP must be *NONE.

*SAME

The value does not change.

*NONE

Specifies the initial thread of jobs using this job description will be started with no ASP group. The library name space will not include libraries from any ASP group. Only the libraries in the system ASP and any basic user ASPs will be in the library name space.

name

Specifies the name of the ASP group to be set for the initial thread of jobs using this job description. The ASP group name is the name of the primary ASP device within the ASP group. All libraries from all ASPs in this ASP group will be included in the library name space.

Top

 

Message logging (LOG)

Specifies the message logging values used to determine the amount and type of information sent to the job log by this job. This parameter has three elements: the message (or logging) level, the message severity, and the level of message text.

Element 1: Level

*SAME

The message logging level does not change.

0-4

Specify the message logging level to be used for the job's messages.

0

No messages are logged.

1

All messages sent to the job's external message queue with a severity greater than or equal to the message logging severity are logged. This includes the indications of job start, job end, and job completion status.

2

The following information is logged:

  • Logging level 1 information

  • Request messages which result in a high-level message with a severity code greater than or equal to the message logging severity. Both the request message and all associated messages are logged.

A high-level message is one that is sent to the program message queue of the program that receives the request message. For example, QCMD is an IBM-supplied request processing program that receives request messages.

3

The following information is logged:

  • Logging level 1 and 2 information

  • All request messages

  • Commands run by a CL program are logged if it is allowed by the logging of CL programs job attribute and the log attribute of the CL program.

4

The following information is logged:

  • All request messages and all messages with a severity greater than or equal to the message logging severity, including trace messages.

  • Commands run by a CL program are logged if it is allowed by the logging of CL programs job attribute and the log attribute of the CL program.

Element 2: Severity

*SAME

The message severity level does not change.

0-99

Specify the message severity level to be used in conjunction with the logging level to determine which error messages are logged in the job log.

Element 3: Text

*SAME

The message text level value does not change.

*MSG

Only the message text is written to the job log.

*SECLVL

Both the message text and the message help (cause and recovery) of the error message are written to the job log.

*NOLIST

If the job ends normally, no job log is produced. If the job ends abnormally (if the job end code is 20 or higher), a job log is produced. The messages that appear in the job log contain both the message text and the message help.

Top

 

Log CL program commands (LOGCLPGM)

Specifies whether the commands that can be logged and were run in a control language program are logged to the job log by way of the CL program's message queue. This parameter sets the status of the job's logging flag. If *NO is specified, the logging flag status is off and CL commands are not logged. If *YES is specified here and *JOB is specified on the Message logging (LOG) parameter of the Create CL Program (CRTCLPGM) command, all commands in the CL program that can be logged are logged to the job log.

*SAME

The value does not change.

*NO

The commands in a CL program are not logged to the job log.

*YES

The commands in a CL program are logged to the job log.

Top

 

Job log output (LOGOUTPUT)

Specifies how the job log will be produced when the job completes. This does not affect job logs produced when the message queue is full and the job message queue full action specifies *PRTWRAP. Messages in the job message queue are written to a spooled file, from which the job log can be printed, unless the Control Job Log Output (QMHCTLJL) API was used in the job to specify that the messages in the job log are to be written to a database file.

The job log output value can be changed at any time until the job log has been produced or removed. To change the job log output value for a job, use the Change Job (QWTCHGJB) API or the Change Job (CHGJOB) command.

The job log can be displayed at any time until the job log has been produced or removed. To display the job log, use the Display Job Log (DSPJOBLOG) command.

The job log can be removed when the job has completed and the job log has not yet been produced or removed. To remove the job log, use the Remove Pending Job Log (QWTRMVJL) API or the End Job (ENDJOB) command.

*SAME

The value does not change.

*SYSVAL

The value specified in the system value QLOGOUTPUT is used.

*JOBLOGSVR

The job log will be produced by a job log server. For more information about job log servers, refer to the Start Job Log Server (STRLOGSVR) command.

*JOBEND

The job log will be produced by the job itself. If the job cannot produce its own job log, the job log will be produced by a job log server. For example, a job does not produce its own job log when the system is processing a Power Down System (PWRDWNSYS) command.

*PND

The job log will not be produced. The job log remains pending until removed.

Top

 

Job message queue maximum size (JOBMSGQMX)

Specifies the maximum size of the job message queue.

*SAME

The job message queue maximum size will not change.

*SYSVAL

The value in QJOBMSGQMX (system value) at the time the job is started is used as the maximum size of the job message queue.

2-64

Specify the maximum size, in megabytes, of the job message queue.

Top

 

Job message queue full action (JOBMSGQFL)

Specifies the action that should be taken when the job message queue is full.

*SAME

The job message queue full option will not change.

*SYSVAL

The value specified for the QJOBMSGQFL system value is used.

*NOWRAP

The message queue does not wrap when it is full. This action ends the job.

*WRAP

The message queue wraps to the start of the message queue when it is full and starts filling the message queue again.

*PRTWRAP

The message queue wraps the job message queue when it is full and prints the messages that are being overlaid because of wrapping.

Top

 

CL syntax check (SYNTAX)

Specifies whether requests placed on the job message queue (for jobs using this job description) are checked for syntax as CL commands. When syntax checking is specified, the commands are checked for syntax as they are submitted instead of when the job is run, thus providing an earlier diagnosis of syntax errors. If checking is specified, the message severity that causes a syntax error to end processing of a job is also specified.

*SAME

The syntax checking does not change.

*NOCHK

The request data is not checked for syntax as CL commands.

0-99

Specify the lowest message severity that can cause running of a job to end. The request data is checked for syntax as CL commands. If a syntax error occurs that is equal to or greater than the error message severity specified here, the running of the job containing the erroneous command is suppressed.

Top

 

End severity (ENDSEV)

Specifies the message severity level of escape messages that can cause a batch job to be ended. The batch job is ended when a request in the batch input stream results in an escape message whose severity code is equal to or greater than that specified here being sent to the request processing program QCMD or QCL. This parameter value is compared with the severity of any escape message not monitored that occurs as a result of running a noncompiled CL command in a batch job.

*SAME

The current value of this parameter does not change.

0-99

Specify the message severity of an escape message that results from a request in the batch input stream and that causes the jobs that use this job description to be ended. Because escape messages typically have a maximum severity level of 50, a value of 50 or lower must be specified in order for a job to be ended as a result of an escape message. An unhandled escape message whose severity is equal to or greater than the value specified causes the job to be ended.

Top

 

Inquiry message reply (INQMSGRPY)

Specifies the way that inquiry messages are answered for jobs that use this job description. You can specify that inquiry messages are to be answered in the usual manner, that a default reply be issued, or that if certain conditions are met, an answer is issued to the inquiry based on those conditions. The conditions met are listed in the system reply list entries of the Add Reply List Entry (ADDRPYLE) command.

*SAME

The method to use for inquiry message replies does not change.

*RQD

A reply is required for any predefined inquiry message that is issued by a job that uses this job description.

*DFT

The default message reply is used to answer any predefined inquiry messages issued during running of a job that uses this job description. The default reply is either defined in the message description or is the default system reply.

*SYSRPYL

The system reply list is checked to determine whether an entry matches the message identifier and optional compare value for any inquiry message issued by a job that uses this job description. If a match occurs, the reply value in that reply list entry is used. If no entry exists for that message, a reply is required.

Top

 

Hold on job queue (HOLD)

Specifies whether jobs using this job description are put on the job queue in the hold condition. A job placed on the job queue in the hold condition is held until it is released by the Release Job (RLSJOB) command, or it is ended, either by the End Job (ENDJOB) command or by the Clear Job Queue (CLRJOBQ) command.

*SAME

The job hold condition does not change.

*NO

Jobs that use this job description are not held when they are put on the job queue.

*YES

Jobs that use this job description are held when they are put on the job queue.

Top

 

Job date (DATE)

Specifies the date that is assigned to the job that uses this job description when the job is started.

*SAME

The job date does not change.

*SYSVAL

The value in the QDATE system value at the time the job is started is used as the job date.

date

Specify the job date for the job being started. The format currently specified for the DATFMT job attribute must be used.

Top

 

Job switches (SWS)

Specifies the initial switch settings for a group of eight job switches used for jobs that use this job description. These switches can be set or tested in a CL program and used to control the flow of the program. The only values that are valid for each single-digit switch are 0 (off) or 1 (on).

*SAME

The eight job switch values do not change.

character-value

Specify any combination (enclosed in apostrophes if necessary) of eight 0's or 1's to change the job switch settings.

Top

 

Device recovery action (DEVRCYACN)

Specifies the recovery action to take for the job when an I/O error is encountered on the *REQUESTOR device for interactive jobs that use this job description. This attribute is ignored for non-interactive jobs.

*SAME

The work station recovery action does not change.

*SYSVAL

The value in the system value QDEVRCYACN at the time the job is started is used as the device recovery action for this job.

*MSG

The application program requesting the I/O operation receives an error message indicating that the I/O operation has failed.

*DSCMSG

The job is automatically disconnected. Once the job has reconnected, it receives an error message indicating an I/O error has occurred and that the device has been recovered. Even though the device has been recovered, the contents of the screen when the error occurred must be displayed again.

*DSCENDRQS

The job is automatically disconnected. Once the job has reconnected, the End Request (ENDRQS) command is issued specifying the processor that made the previous request. If there is no available request processor, the ENDRQS command fails, and an error message will be issued.

*ENDJOB

The job is ended with the *IMMED option. A job log is produced for the job.

*ENDJOBNOLIST

The job is ended with the *IMMED option. No job log is produced for the job.

Top

 

Time slice end pool (TSEPOOL)

Specifies whether interactive jobs are moved to another main storage pool when the end of the time slice is reached. When a long wait occurs, the job is moved back to the pool in which it was originally running. This may help minimize the effect on interactive response time.

*SAME

The value for the time slice end pool does not change.

*SYSVAL

The system value in QTSEPOOL at the time the job is started is to be used as the time slice end pool action for this job description.

*NONE

The job is not moved when the end of the time slice is reached.

*BASE

The job is moved to the base pool when the time slice end pool is reached.

Top

 

Allow multiple threads (ALWMLTTHD)

Specifies whether or not the job can run with multiple user threads. This attribute does not prevent the operating system from creating system threads in the job. This job attribute is not allowed to be changed once a job starts. This attribute applies to autostart jobs, prestart jobs, batch jobs submitted from job schedule entries and jobs started using the Submit Job (SBMJOB) and Batch Job (BCHJOB) commands. This attribute is ignored when starting all other types of jobs. This attribute should be set to *YES only in job descriptions used exclusively with functions that create multiple user threads.

*SAME

The value does not change.

*NO

The job cannot run with multiple user threads.

*YES

The job can run with multiple user threads.

Top

 

Spooled file action (SPLFACN)

Specifies whether or not spooled files are accessed through job interfaces after the job ends. Keeping spooled files with jobs allows job commands such as the Work with Submitted Jobs (WRKSBMJOB) command to work with the spooled files even after the job has ended. Detaching spooled files from jobs reduces the use of system resources by allowing job structures to be recycled when the jobs end.

*SAME

The value does not change.

*SYSVAL

The value specified in the system value QSPLFACN is used.

*KEEP

When the job ends, as long as at least one spooled file for the job exists in the system auxiliary storage pool (ASP 1) or in a basic user ASP (ASPs 2-32), the spooled files are kept with the job and the status of the job is updated to indicate that the job has completed. If all remaining spooled files for the job are in independent ASPs (ASPs 33-255), the spooled files will be detached from the job and the job will be removed from the system.

*DETACH

When the job ends, the spooled files are detached from the job and the job is removed from the system.

Top

 

DDM conversation (DDMCNV)

Specifies whether the connections using distributed data management (DDM) protocols remain active when they are not being used. The connections include APPC conversations, active TCP/IP conversations or OptiConnect connections. The DDM protocols are used in Distributed Relational Database Architecture (DRDA) applications, DDM applications, or DB2 Multisystem applications. For more information on distributed data management, see the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.

*SAME

The value does not change.

*KEEP

The system keeps DDM conversation connections active when they are no longer being used, except when:

  • The routing step ends on the source system.

  • There is an explicit request that conversations be disconnected, using the Reclaim DDM Conversations (RCLDDMCNV) command or the Reclaim Resources (RCLRSC) command.

  • There is a communications failure or internal failure.

  • A DRDA connection to an application server not running on the iSeries ends.

*DROP

The system ends a DDM-allocated conversation when it is no longer being used. Examples include when an application closes a DDM file, or when a DRDA application runs an SQL DISCONNECT statement.

Top


 

Examples

Example 1: Setting Job Running and Output Priorities

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

This command allows jobs using the IBM-supplied job description QPGMR in the QGPL library to process with a higher job and output priority than originally specified for QPGMR. QPGMR originally sets job running and output priorities at level 5. More information about the IBM-supplied job description parameter values is in the CL Programming book.

Example 2: Changing Priority Limits

Assume that the user profile was created as follows:

Part 1:

 CRTUSRPRF   USRPRF(JLRAY)  PASSWORD(GAMMA)  SPCAUT(*JOBCTL)
            PTYLMT(4)  AUT(*NONE)

Then attempt to change the priority limits of the job description BATCH5 with the following command:

Part 2:

 CHGJOBD   JOBD(BATCH5)  USER(JLRAY)  JOBPTY(1)  OUTPTY(1)

Because the priority limit specified in the user profile takes precedence over any limit specified in a job description, an error message is sent and a priority of 4 is assumed for both job and output priority levels.

Example 3: Requiring a Password to Sign On at Work Station

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

The USER parameter indicates the user of the job description INT4 must enter a password to sign on at a work station. The characters QCMDI are used as the routing data being compared with the routing table of the subsystem under which the job is run. All values of the LOG parameter list are not changed. Jobs that use this job description have accounting data recorded under the accounting code, 'USERXYZ CODE123', when job accounting is active. The text for this job description is changed to all blanks.

Example 4: Directing Jobs Using This System to a Specific Job Queue

 CHGJOBD   JOBD(BATCH3)  JOBQ(NIGHTQ)  JOBPTY(4)  OUTPTY(4)
          RTGDTA(QCMDB)  INQMSGRPY(*DFT)
          TEXT('Batch #3 JOBD for high priority night work')

This command changes a job description named BATCH3 found in the library search list. The jobs using this description are now placed on the job queue NIGHTQ. The priority for jobs using this description and their spooled files is 4. QCMDB is the routing data that is compared with entries in the routing table of the subsystem where the job is run. The text is changed to indicate that this job description is for high priority night work. The INQMSGRPY parameter specifies that all messages of type *INQ that are issued from a job using this job description automatically causes the default reply message to be issued.

Top


 

Error messages

*ESCAPE Messages

CPF1618

Job description &1 in library &2 damaged.

CPF1625

Job description &1 in library &2 not changed.

CPF9872

Program or service program &1 in library &2 ended. Reason code &3.

Top