ADDJOBSCDE (Add Job Schedule Entry) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec Threadsafe: No >>-ADDJOBSCDE--JOB(--+-*JOBD----+--)----------------------------> '-job-name-' (1) >--CMD(----command-string----)--FRQ(--+-*ONCE----+--)-----------> +-*WEEKLY--+ '-*MONTHLY-' >--+-----------------------------------+------------------------> | .-*CURRENT------. | +-SCDDATE(--+-*MONTHSTR-----+--)----+ | +-*MONTHEND-----+ | | +-*NONE---------+ | | '-schedule-date-' | | (2) | | .-*NONE-------------. | '-SCDDAY(--+-*ALL--------------+--)-' | .---------------. | | V | | '---+-*MON------+-+-' +-*TUE------+ +-*WED------+ +-*THU------+ +-*FRI------+ +-*SAT------+ | (3) | '-*SUN------' >--+--------------------------------+---------------------------> | .-*CURRENT------. | '-SCDTIME(--+-schedule-time-+--)-' >--+----------------------------------------+-------------------> | .-----------. | | (4) V .-1-----. | (5) | '-RELDAYMON(---------+-2-----+-+-------)-' +-3-----+ +-4-----+ +-5-----+ '-*LAST-' >--+--------------------------------------+---------------------> | .-*NONE--------------. | | | .----------------. | | | | V (6) | | | '-OMITDATE(--+---omit-date------+-+--)-' >--+-------------------------+--+-------------------------+-----> | .-*SBMRLS-. | | (7) .-*NO--. | '-RCYACN(--+-*SBMHLD-+--)-' '-SAVE(-------+-*YES-+--)-' '-*NOSBM--' >--+------------------------------------------------------------+--> | (9) | | .-*USRPRF---------------------------------. | | (8) | .-*LIBL/--------. | | '-JOBD(-------+-+---------------+--job-description-name-+--)-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------------------+----------> | .-*JOBD-----------------------------. | | | .-*LIBL/--------. | | '-JOBQ(--+-+---------------+--job-queue-name-+--)-' +-*CURLIB/------+ '-library-name/-' >--+--------------------------------+---------------------------> | .-*CURRENT----. | | (8) | (10) | | '-USER(-------+-*JOBD-------+--)-' '-user-name---' >--+-----------------------------------------------------+------> | .-*USRPRF-------------------------------. | '-MSGQ(--+-*NONE---------------------------------+--)-' | .-*LIBL/--------. | '-+---------------+--message-queue-name-' +-*CURLIB/------+ '-library-name/-' >--+-----------------------------+----------------------------->< | .-*BLANK--------. | '-TEXT(--+-'description'-+--)-'
Notes:
- All parameters preceding this point can be specified in positional form.
- SCDDAY(*NONE) is not valid when SCDDATE(*NONE) is specified.
- A maximum of 7 repetitions.
- Valid only if SCDDAY and FRQ(*MONTHLY) are specified.
- A maximum of 5 repetitions.
- A maximum of 20 repetitions.
- Valid only if FRQ(*ONCE) is specified.
- JOBD(*USRPRF) and USER(*JOBD) are mutually exclusive.
- Not valid if USER(*JOBD) is specified.
- Not valid if JOBD(*USRPRF) is specified or if the job description specifies USER(*RQD).