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:

  1. All parameters preceding this point can be specified in positional form.

  2. SCDDAY(*NONE) is not valid when SCDDATE(*NONE) is specified.

  3. A maximum of 7 repetitions.

  4. Valid only if SCDDAY and FRQ(*MONTHLY) are specified.

  5. A maximum of 5 repetitions.

  6. A maximum of 20 repetitions.

  7. Valid only if FRQ(*ONCE) is specified.

  8. JOBD(*USRPRF) and USER(*JOBD) are mutually exclusive.

  9. Not valid if USER(*JOBD) is specified.

  10. Not valid if JOBD(*USRPRF) is specified or if the job description specifies USER(*RQD).