|Where allowed to run: All environments (*ALL)
The COZTOOLS-Change Job Atributes (CHGJOBA) command uses the specified *JOBD (job description) to change the attributes of the current running job to those of the *JOBD. The attributes that are changed include the User Portion of the Library List, CL Logging, Message Logging, and the Job's Output Queue. The corresponding parameters of the IBM CL CHGJOB command would be LOG, LOGCLPGM, and OUTQ. In addition the CL command CHGLIBL's LIBL parameter would be the corresponding functionality to change the library list.
|JOBD||Job Description||Single values: *USRPRF, *SAME, *NONE
Other values: Qualified object name
|Required, Positional 1|
|Qualifier 1: Job Description||Name|
|Qualifier 2: Library||Name, *LIBL, *CURLIB|
|LIBL||Change Library List to||*JOBD, QUSRLIBL, *SYSVAL, *SAME||Optional, Positional 2|
|OUTQ||Output Queue||*JOBD, *SAME||Optional, Positional 3|
|LOG||Job Logging Level||*JOBD, *SAME||Optional, Positional 4|
|LOGCLPGM||Log CL Programs||*JOBD, *SAME, *YES, *NO||Optional, Positional 5|
|LOGOUTPUT||Joblog Output Schedule||*JOBD, *SAME||Optional, Positional 6|
|JOBMSGQFL||Job Message Queue Full action||*JOBD, *SAME||Optional, Positional 7|
|INQMSGRPY||Inquiry Message Reply||*JOBD, *SAME||Optional, Positional 8|
|SPLFACN||SPOOL File action||*JOBD, *SAME||Optional, Positional 9|
Specifies the Job Description whose attributes are applied to the currently running job.
This is a required parameter.
Qualifier 1: Job Description
Specifies if the User Portion of the current Job's library is changed to that of the Job Description specified on the JOBD parameter.
Specifies whether the Job's Output Queue is changed to the Output Queue (OUTQ) attribute of the specified Job Description.
Specifies the message logging values used to determine the amount and type of information sent to the joblog are changed to that of the job description specified on the JOBD parameter.
Specifies whether the commands that are run in a CL program are logged to the job log through the message queue.
Specifies how the job log will be produced when the job completes. The settings are *JOBEND, *JOBLOGSVR, *PND or *SYSVAL
Using LOGOUTPUT(*JOBEND) is the default and produces the best results. But LOGOUTPUT(*JOBLOGSVR) causes the job to use the Joblog Server to produce Joblogs regardless of the ability of the Job to produce the joblog itself. Note that LOGOUTPUT(*JOBEND) will switch automatically to *JOBLOGSVR when the job cannot produce the joblog for any reason. LOGOUTPUT(*PND) means that the joblog is not produced at job end by stays in a Pending status until you actually attempt to produce the joblog using an API or the DSPJOBLOG command.
Specifies what happens when the joblog message queue becomes full. The settings are *WRAP, *NOWRAP, *PRTWRAP or *SYSVAL.
Specifies what happens when an Inquiry message is issued for this job. The settings for this option are: *RQD, *DFT, and *SYSRPYL
Specifies whether SPOOL files are detached from this job when the job ends. This can free up resources. If the SPOOL file is detached, the SPOOL file is no longer associated with this job after the job completes/ends. Using CHGJOB SPLACN(*DETACH) releases the SPOOL file once the job ends, specifying *KEEP (the default) retains the SPOOL-File-to-Job association after the job ends. The settings for this option are: *SYSVAL, *KEEP, *DETACH