CHGJOB (Change Job) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec Threadsafe: Conditional; see Restrictions >>-CHGJOB-------------------------------------------------------> (1) >--+--------------------------------------------------------+-------> | .-*-----------------------------------------. | '-JOB(--+-+-----------------------------+--job-name-+--)-' '-+-------------+--user-name/-' '-job-number/-' >--+-------------------------------------------------+----------> | .-*SAME-----------------------------. | | | .-*LIBL/--------. | | '-JOBQ(--+-+---------------+--job-queue-name-+--)-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------+----------------------> | .-*SAME---------------. | '-JOBPTY(--+-scheduling-priority-+--)-' >--+---------------------------------+--------------------------> | .-*SAME-----------. | '-OUTPTY(--+-output-priority-+--)-' >--+----------------------------------+-------------------------> | .-*SAME------------. | '-PRTTXT(--+-*SYSVAL----------+--)-' +-*BLANK-----------+ '-'--print-text--'-' >--+----------------------------------------------------------------------+--> | .-*SAME---------. .-*SAME-. .-*SAME---. | '-LOG(--+-message-level-+--+-------+--message-severity--+-*MSG----+--)-' +-*SECLVL-+ '-*NOLIST-' >--+-------------------------+----------------------------------> | .-*SAME-. | '-LOGCLPGM(--+-*YES--+--)-' '-*NO---' >--+-----------------------------+------------------------------> | .-*SAME----. | '-INQMSGRPY(--+-*RQD-----+--)-' +-*DFT-----+ '-*SYSRPYL-' >--+-------------------------+--+-------------------------+-----> | .-*SAME---. | | .-*SAME---. | '-BRKMSG(--+-*NORMAL-+--)-' '-STSMSG(--+-*USRPRF-+--)-' +-*NOTIFY-+ +-*SYSVAL-+ '-*HOLD---' +-*NONE---+ '-*NORMAL-' >--+--------------------------------------------------------+---> | .-*SAME----------------------------------. | '-PRTDEV(--+-*USRPRF--------------------------------+--)-' +-*SYSVAL--------------------------------+ | .-*LIBL/--------. | '-+---------------+--printer-device-name-' +-*CURLIB/------+ '-library-name/-' >--+----------------------------------------------------+-------> | .-*SAME--------------------------------. | '-OUTQ(--+-*USRPRF------------------------------+--)-' +-*DEV---------------------------------+ +-*WRKSTN------------------------------+ | .-*LIBL/--------. | '-+---------------+--output-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+-----------------------+--+----------------------------+----> | .-*SAME-. | | .-*SAME-----. | '-DDMCNV(--+-*KEEP-+--)-' '-SCDDATE(--+-*CURRENT--+--)-' '-*DROP-' +-*MONTHSTR-+ +-*MONTHEND-+ +-*MON------+ +-*TUE------+ +-*WED------+ +-*THU------+ +-*FRI------+ +-*SAT------+ +-*SUN------+ '-date------' >--+---------------------------+--+------------------------+----> | .-*SAME----. | | .-*SAME----. | '-SCDTIME(--+-*CURRENT-+--)-' '-DATE(--+-job-date-+--)-' '-time-----' >--+-------------------------+--+-------------------------+-----> | .-*SAME---. | | .-*SAME---. | '-DATFMT(--+-*SYSVAL-+--)-' '-DATSEP(--+-*SYSVAL-+--)-' +-*YMD----+ +-*BLANK--+ +-*MDY----+ +-'/'-----+ +-*DMY----+ +-'-'-----+ '-*JUL----' +-'.'-----+ '-','-----' >--+------------------------+-----------------------------------> | .-*SAME---. | '-TIMSEP--+-*SYSVAL-+--)-' +-':'-----+ +-','-----+ '-'.'-----' >--+------------------------------+-----------------------------> | .-*SAME-----------. | '-SWS(--+-switch-settings-+--)-' >--+------------------------------+-----------------------------> | .-*SAME--------. | '-RUNPTY(--+-run-priority-+--)-' >--+-------------------------------+----------------------------> | .-*SAME------. | '-TIMESLICE(--+-time-slice-+--)-' >--+----------------------+-------------------------------------> | .-*SAME-. | '-PURGE(--+-*YES--+--)-' '-*NO---' >--+----------------------------------+-------------------------> | .-*SAME-----------. | '-DFTWAIT(--+-*NOMAX----------+--)-' '-seconds-to-wait-' >--+----------------------------------+-------------------------> | .-*SAME---------. | '-DEVRCYACN(--+-*SYSVAL-------+--)-' +-*MSG----------+ +-*DSCMSG-------+ +-*DSCENDRQS----+ +-*ENDJOB-------+ '-*ENDJOBNOLIST-' >--+--------------------------+---------------------------------> | .-*SAME---. | '-TSEPOOL(--+-*SYSVAL-+--)-' +-*NONE---+ '-*BASE---' >--+----------------------------+-------------------------------> | .-*SAME---. | '-PRTKEYFMT(--+-*SYSVAL-+--)-' +-*PRTHDR-+ +-*PRTBDR-+ +-*PRTALL-+ '-*NONE---' >--+-----------------------------------------------+------------> | .-*SAME-------------------------. | '-SRTSEQ(--+-*SYSVAL-----------------------+--)-' +-*USRPRF-----------------------+ +-*HEX--------------------------+ +-*LANGIDUNQ--------------------+ +-*LANGIDSHR--------------------+ | .-*LIBL/--------. | '-+---------------+--table-name-' +-*CURLIB/------+ '-library-name/-' >--+-----------------------------+------------------------------> | .-*SAME-------. | '-LANGID(--+-*SYSVAL-----+--)-' +-*USRPRF-----+ '-language-ID-' >--+---------------------------------------+--------------------> | .-*SAME----------------. | '-CNTRYID(--+-*SYSVAL--------------+--)-' +-*USRPRF--------------+ '-country-or-region-ID-' >--+-----------------------------------------------+------------> | .-*SAME--------------------------. | '-CCSID(--+-*SYSVAL------------------------+--)-' +-*USRPRF------------------------+ +-*HEX---------------------------+ '-coded-character-set-identifier-' >--+----------------------------+-------------------------------> | .-*SELECT-. | '-DUPJOBOPT(--+-*MSG----+--)-' >--+-----------------------------+------------------------------> | .-*SAME----. | '-JOBMSGQFL(--+-*SYSVAL--+--)-' +-*NOWRAP--+ +-*WRAP----+ '-*PRTWRAP-' >--+-------------------------+----------------------------------> | .-*SAME---. | '-DECFMT(--+-*SYSVAL-+--)-' +-*BLANK--+ +-J-------+ '-I-------' >--+-----------------------------+------------------------------> | .-*SAME-----. | '-CHRIDCTL(--+-*SYSVAL---+--)-' +-*USRPRF---+ +-*DEVD-----+ '-*JOBCCSID-' >--+--------------------------+-------------------------------->< | .-*SAME---. | '-SPLFACN(--+-*SYSVAL-+--)-' +-*KEEP---+ '-*DETACH-'
Notes:
- All parameters preceding this point can be specified in positional form.