CHGJOBJS (Change Job Using Job Scheduler) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec >>-CHGJOBJS-----------------------------------------------------> .-*NONE------. .-*NONE-----------------. (1) (2) >--JOB(----job-name----+-group-name-+--+-group-sequence-number-+--)-----------> >--+-------------------------------+----------------------------> | .-*SAME------------. | '-APP(--+-*NONE------------+--)-' '-application-name-' >--+----------------------------+-------------------------------> | .-*SAME------. | '-SCDCDE(--+-*DAILY-----+--)-' +-*CALENDAR--+ +-*DATE------+ +-*DAY-------+ +-*NUMDAY----+ +-*MINUTES---+ +-*ONCE------+ +-*MONTHEND--+ +-*FIRST-----+ +-*SECOND----+ +-*THIRD-----+ +-*FOURTH----+ +-*FIFTH-----+ +-*LAST------+ +-*FIRSTWRK--+ +-*LASTWRK---+ +-*DEPJOB----+ +-*ALTERNATE-+ +-*NONE------+ '-*JOBCTL----' >--+---------------------------------------------+--------------> | .-*SAME--------------------. | | | .----------------------. | | | | V | | (3) | '-TIME(--+---2400--scheduled-time-+-+-------)-' >--+-----------------------------------+------------------------> | .-*SAME-------------. | '-ITVMIN(--+-number-of-minutes-+--)-' >--+----------------------------+-------------------------------> | .-*SAME---------. | '-CAL(--+-*NONE---------+--)-' '-calendar-name-' >--+---------------------------------------+--------------------> | .-*SAME-----------------. | '-HDYCAL(--+-*NONE-----------------+--)-' '-holiday-calendar-name-' >--+--------------------------------------+---------------------> | .-*SAME----------------. | '-FSCCAL(--+-*NONE----------------+--)-' '-fiscal-calendar-name-' >--+--------------------------------+---------------------------> | .-*SAME--------. (4) | '-DAY(--+-*ALL---------+-------)-' | .----------. | | V | | '---+-*MON-+-+-' +-*TUE-+ +-*WED-+ +-*THU-+ +-*FRI-+ +-*SAT-+ '-*SUN-' >--+-----------------------+------------------------------------> | .-*SAME-. | '-SNGDAY(--+-*SUN--+--)-' +-*MON--+ +-*TUE--+ +-*WED--+ +-*THU--+ +-*FRI--+ '-*SAT--' >--+--------------------------------+---------------------------> | .-*SAME----------. | '-ITVDAY(--+-number-of-days-+--)-' >--+-------------------------------------+----------------------> | .-*SAME-----------------. | | | .-------------------. | | | | V | | | '-DATE(--+---dates-of-the-year-+-+--)-' >--+------------------------------+--+---------------------+----> | .-*SAME-------. | | .-*SAME-. | '-SNGDATE(--+-*NEXT-------+--)-' '-SAVE(--+-*YES--+--)-' '-single-date-' '-*NO---' >--+-----------------------------------------+------------------> | .-*SAME------------. | | | .--------------. | | | | V | | (5) | '-DAYMONTH(--+---day-of-month-+-+-------)-' >--+-----------------------+------------------------------------> | .-*SAME-. | '-WRKDAY(--+-*NO---+--)-' '-*YES--' >--+--------------------------------------------------+---------> | .-*SAME--------------------. (5) | '-FSCPERIOD(--+-*ALL---------------------+-------)-' | .----------------------. | | V | | '---fiscal-period-number-+-' >--+--------------------------+---------------------------------> | .-*SAME------. | '-TEXT(--+-*NONE------+--)-' '-print-text-' >--+----------------------------------------------+-------------> | .-*SAME--------------------. | '-RMTLOCNAME(--+-*JOBCTL------------------+--)-' +-*LCL---------------------+ +-remote-location-name-----+ '-network-ID.location-name-' >--+-------------------------------------------------------------------------------------+--> | .-*SAME----------. .-*SAME----------. .-*SAME-------. .-*SAME-------. | '-RANGE(--+-*NONE----------+--+-*NONE----------+--+-*NONE-------+--+-*NONE-------+--)-' '-beginning-time-' '-beginning-date-' '-ending-time-' '-ending-date-' >--+----------------------------------+-------------------------> | .-*SAME------------. | '-MAXRUN(--+-*NOMAX-----------+--)-' '-maximum-run-time-' >--+-----------------------------------------------------------+--> | .-*SAME----------. .-*SAME---------. | '-PGRRCPNORM(--+-+-*JOBCTL--------+--+-*JOBCTL-------+-+--)-' | '-recipient-name-' +-*COMP---------+ | | '-pager-message-' | '-*NONE---------------------------------' >--+----------------------------------------------------------+--> | .-*SAME----------. .-*SAME---------. | '-PGRRCPABN(--+-+-*JOBCTL--------+--+-*JOBCTL-------+-+--)-' | '-recipient-name-' +-*COMP---------+ | | '-pager-message-' | '-*NONE---------------------------------' >--+-------------------------------------------------------------------------------+--> | .-*SAME---------------------------------------------------------. | '-ALTJOB(--+-*NONE---------------------------------------------------------+--)-' | .-*NONE------. .-*NONE-----------------. | '-alternate-job-name--+-group-name-+--+-group-sequence-number-+-' >--+------------------------------------------+-----------------> | .-*SAME------------------. | '-RPTDSTID(--+-*NONE------------------+--)-' '-report-distribution-ID-' >--+-------------------------+----------------------------------> | .-*SAME---. | '-RCYACN(--+-*JOBCTL-+--)-' +-*SBMRLS-+ +-*SBMHLD-+ '-*NOSBM--' >--+-------------------------------------------------------+----> | .-*SAME-----------------------------------. | '-JOBD(--+-*JOBCTL---------------------------------+--)-' +-*USRPRF---------------------------------+ | .-*LIBL/--------. | '-+---------------+--job-description-name-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------------------+----------> | .-*SAME-----------------------------. | '-JOBQ(--+-*JOBCTL---------------------------+--)-' +-*JOBD-----------------------------+ | .-*LIBL/--------. | '-+---------------+--job-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------+----------------------> | .-*SAME---------------. | '-JOBPTY(--+-*JOBCTL-------------+--)-' +-*JOBD---------------+ '-scheduling-priority-' >--+---------------------------------+--------------------------> | .-*SAME-----------. | '-OUTPTY(--+-*JOBCTL---------+--)-' +-*JOBD-----------+ '-output-priority-' >--+-------------------------------------+----------------------> | .-*SAME---------------. | '-PRTDEV(--+-*JOBCTL-------------+--)-' +-*USRPRF-------------+ +-*DEV----------------+ +-*SYSVAL-------------+ +-*JOBD---------------+ '-printer-device-name-' >--+----------------------------------------------------+-------> | .-*SAME--------------------------------. | '-OUTQ(--+-*JOBCTL------------------------------+--)-' +-*JOBD--------------------------------+ | .-*LIBL/--------. | '-+---------------+--output-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------+----------------------------------> | .-*SAME-----. | '-USER(--+-*JOBCTL---+--)-' +-*CURRENT--+ +-*JOBD-----+ '-user-name-' >--+----------------------------+-------------------------------> | .-*SAME------. | '-PRTTXT(--+-*JOBCTL----+--)-' +-*BLANK-----+ +-*JOBD------+ +-*SYSVAL----+ '-print-text-' >--+------------------------------+-----------------------------> | .-*SAME--------. | '-RTGDTA(--+-*JOBCTL------+--)-' +-*JOBD--------+ '-routing-data-' >--+--------------------------------------+---------------------> | .-*SAME----------------. | '-CURLIB(--+-*JOBCTL--------------+--)-' +-*USRPRF--------------+ +-*CRTDFT--------------+ '-current-library-name-' >--+---------------------------------+--------------------------> | .-*SAME-------------. | '-LIBL(--+-*JOBD-------------+--)-' +-*SYSVAL-----------+ +-*NONE-------------+ +-*JOBCTL-----------+ '-library-list-name-' >--+---------------------------------------------------------------+--> | .-*SAME---------. .-*SAME------------. .-*SAME---. | '-LOG(--+-*JOBCTL-------+--+-*JOBCTL----------+--+-*JOBCTL-+--)-' +-*JOBD---------+ +-*JOBD------------+ +-*JOBD---+ '-message-level-' '-message-severity-' +-*MSG----+ +-*SECLVL-+ '-*NOLIST-' >--+---------------------------+--------------------------------> | .-*SAME---. | '-LOGCLPGM(--+-*JOBCTL-+--)-' +-*JOBD---+ +-*YES----+ '-*NO-----' >--+-----------------------------+--+-----------------------+---> | .-*SAME----. | | .-*SAME---. | '-INQMSGRPY(--+-*JOBCTL--+--)-' '-HOLD(--+-*JOBCTL-+--)-' +-*JOBD----+ +-*JOBD---+ +-*RQD-----+ +-*YES----+ +-*DFT-----+ '-*NO-----' '-*SYSRPYL-' >--+------------------------------+-----------------------------> | .-*SAME-----------. | '-SWS(--+-*JOBCTL---------+--)-' +-*JOBD-----------+ '-switch-settings-' >--+-----------------------------------------------------+------> | .-*SAME---------------------------------. | '-MSGQ(--+-*JOBCTL-------------------------------+--)-' +-*USRPRF-------------------------------+ +-*NONE---------------------------------+ | .-*LIBL/--------. | '-+---------------+--message-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+---------------------------------+--------------------------> | .-*SAME-----------. | '-ACGCDE(--+-*JOBCTL---------+--)-' +-*JOBD-----------+ +-*USRPRF---------+ +-*BLANK----------+ '-accounting-code-' >--+------------------------------------------+---------------->< | .-*SAME--------------------. | '-RUNPTY(--+-*JOBCTL------------------+--)-' +-*NOCHG-------------------+ '-machine-running-priority-'
Notes: