Command reference / job
CHGCLS
Change Class
The Change Class (CHGCLS) command changes the attributes of a class object that was created using the Create Class (CRTCLS) command. The class defines the processing attributes for jobs that use the class. The class used by a job is specified in the subsystem description routing entry used to start the job. Any attribute can be changed, except for the public authority attribute.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- To use this command, you must have object management (*OBJMGT) and object operational (*OBJOPR) authorities for the class.
- To use this command, you must have execute (*EXECUTE) authority for the library in which the class resides.
Parameters
CLS
Class
Specifies the qualified name of the class. This is a required parameter.
*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.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Class
Class
Library
Library
Suggested / special values:
*LIBL, *CURLIB
RUNPTY
Run priority
Specifies the run priority of jobs that use the class. Run priority is a value ranging from 1 (highest priority) through 99 (lowest priority) that represents the priority at which the job competes for the processing unit relative to other jobs that are active at the same time.
Suggested / special values:
*SAME
*SAME- The run priority does not change.
TIMESLICE
Time slice
Specifies the maximum amount of processor time (in milliseconds) given to each thread in a job using this class before other threads in a job or other jobs are given the opportunity to run.
Suggested / special values:
*SAME
*SAME- The time slice does not change.
PURGE
Eligible for purge
Specifies whether the job is eligible to be moved out of main storage and put into auxiliary storage at the end of a time slice or when there is a long wait. The operating system no longer uses this parameter.
Allowed values:
*SAME, *YES, *NO
*SAME- The value does not change.
*YES- The job is eligible to be moved out of main storage and into auxiliary storage. However, a job with multiple threads is never purged from main storage.
*NO- The job is not eligible to be moved out of main storage and put into auxiliary storage.
DFTWAIT
Default wait time
Specifies the default maximum time (in seconds) that a thread in the job waits for a system instruction to acquire a resource. This default wait time is used when a wait time is not specified for a given situation.
Suggested / special values:
*SAME, *NOMAX
*SAME- The default wait time does not change.
*NOMAX- There is no maximum wait time.
TEXT
Text 'description'
Specifies the text that briefly describes the object.
Suggested / special values:
*SAME
*SAME- The text does not change.
*BLANK- No text is specified.
Examples
CHGCLS CLS(CLASS1) RUNPTY(60) TIMESLICE(900)
This command changes a class called CLASS1 in the library on the job's library list. The run priority for the class is changed to 60 and a time slice of 900 milliseconds.
Generated from os/cl/catalog/CHGCLS.json and os/cl/help/CHGCLS.json.