SBMJOB (Submit Job) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: Conditional; see Restrictions
>>-SBMJOB--+-----------------------+---------------------------->
           |       .-*JOBD----.    |
           '-JOB(--+-job-name-+--)-'
 
>--+-------------------------------------------------------+---->
   |        .-*USRPRF---------------------------------.    |
   |        | .-*LIBL/--------.                       |    |
   '-JOBD(--+-+---------------+--job-description-name-+--)-'
              +-*CURLIB-------+
              '-library-name/-'
 
>--+-------------------------+---------------------------------->
   |        .-*CURRENT--.    |
   '-USER(--+-*JOBD-----+--)-'
            '-user-name-'
 
                                                       (1)
>--+-------------------------------------------------+---------->
   |        .-*JOBD-----------------------------.    |
   |        | .-*LIBL/--------.                 |    |
   '-JOBQ(--+-+---------------+--job-queue-name-+--)-'
              +-*CURLIB/------+
              '-library-name/-'
 
>--+-------------------------------------+---------------------->
   |          .-*JOBD---------------.    |
   '-JOBPTY(--+-scheduling-priority-+--)-'
 
>--+---------------------------------+-------------------------->
   |          .-*JOBD-----------.    |
   '-OUTPTY(--+-output-priority-+--)-'
 
>--+------------------------------+----------------------------->
   |          .-*CURRENT-----.    |
   '-PRTTXT(--+-*JOBD--------+--)-'
              +-*SYSVAL------+
              +-*BLANK-------+
              '-'print-text'-'
 
>--+--------------------------------+--------------------------->
   |          .-QCMDB----------.    |
   '-RTGDTA(--+-*JOBD----------+--)-'
              +-*RQSDTA--------+
              '-'routing-data'-'
 
>--+--------------------------------+--------------------------->
   +-CMD(--CL-command--)------------+
   |          .-*CMD-----------.    |
   '-RQSDTA(--+-*JOBD----------+--)-'
              +-*NONE----------+
              +-*RTGDTA--------+
              '-'request-data'-'
 
>--+---------------------------+-------------------------------->
   |           .-*CURRENT-.    |
   '-SYSLIBL(--+-*SYSVAL--+--)-'
 
>--+--------------------------------------+--------------------->
   |          .-*CURRENT-------------.    |
   '-CURLIB(--+-*USRPRF--------------+--)-'
              +-*CRTDFT--------------+
              '-current-library-name-'
 
>--+----------------------------------------+------------------->
   |           .-*CURRENT--------------.    |
   '-INLLIBL(--+-*JOBD-----------------+--)-'
               +-*SYSVAL---------------+
               +-*NONE-----------------+
               | .-------------------. |
               | V              (2)  | |
               '---library-name------+-'
 
>--+---------------------------------------------------------------+-->
   |       .-*JOBD---------.  .-*JOBD------------.  .-*JOBD---.    |
   '-LOG(--+-message-level-+--+-message-severity-+--+-*MSG----+--)-'
                                                    +-*SECLVL-+
                                                    '-*NOLIST-'
 
>--+-------------------------+---------------------------------->
   |            .-*JOBD-.    |
   '-LOGCLPGM(--+-*NO---+--)-'
                '-*YES--'
 
>--+-----------------------------+------------------------------>
   |             .-*JOBD----.    |
   '-INQMSGRPY(--+-*RQD-----+--)-'
                 +-*DFT-----+
                 '-*SYSRPYL-'
 
>--+-------------------------------------+---------------------->
   |          .-*CURRENT------------.    |
   '-PRTDEV(--+-*USRPRF-------------+--)-'
              +-*SYSVAL-------------+
              +-*JOBD---------------+
              '-printer-device-name-'
 
>--+----------------------------------------------------+------->
   |        .-*CURRENT-----------------------------.    |
   '-OUTQ(--+-*USRPRF------------------------------+--)-'
            +-*DEV---------------------------------+
            +-*JOBD--------------------------------+
            | .-*LIBL/--------.                    |
            '-+---------------+--output-queue-name-'
              +-*CURLIB/------+
              '-library-name/-'
 
>--+---------------------+--+----------------------------+------>
   |        .-*JOBD-.    |  |           .-*CURRENT--.    |
   '-HOLD(--+-*NO---+--)-'  '-SCDDATE(--+-*MONTHSTR-+--)-'
            '-*YES--'                   +-*MONTHEND-+
                                        +-*MON------+
                                        +-*TUE------+
                                        +-*WED------+
                                        +-*THU------+
                                        +-*FRI------+
                                        +-*SAT------+
                                        +-*SUN------+
                                        '-date------'
 
>--+---------------------------+--+------------------------+---->
   |           .-*CURRENT-.    |  |        .-*JOBD----.    |
   '-SCDTIME(--+-time-----+--)-'  '-DATE(--+-*SYSVAL--+--)-'
                                           '-job-date-'
 
>--+------------------------------+----------------------------->
   |       .-*JOBD-----------.    |
   '-SWS(--+-switch-settings-+--)-'
 
>--+-------------------------+---------------------------------->
   |             .-*YES-.    |
   '-DSPSBMJOB(--+-*NO--+--)-'
 
>--+-----------------------------------------------------+------>
   |        .-*USRPRF-------------------------------.    |
   '-MSGQ(--+-*WRKSTN-------------------------------+--)-'
            +-*NONE---------------------------------+
            | .-*LIBL/--------.                     |
            '-+---------------+--message-queue-name-'
              +-*CURLIB/------+
              '-library-name/-'
 
>--+-----------------------------------------------+------------>
   |          .-*CURRENT----------------------.    |
   '-SRTSEQ(--+-*SYSVAL-----------------------+--)-'
              +-*USRPRF-----------------------+
              +-*HEX--------------------------+
              +-*LANGIDUNQ--------------------+
              +-*LANGIDSHR--------------------+
              | .-*LIBL/--------.             |
              '-+-*CURLIB/------+--table-name-'
                '-library-name/-'
 
>--+-----------------------------+------------------------------>
   |          .-*CURRENT----.    |
   '-LANGID(--+-*SYSVAL-----+--)-'
              +-*USRPRF-----+
              '-language-ID-'
 
>--+---------------------------------------+-------------------->
   |           .-*CURRENT-------------.    |
   '-CNTRYID(--+-*SYSVAL--------------+--)-'
               +-*USRPRF--------------+
               '-country-or-region-ID-'
 
>--+-----------------------------------------------+------------>
   |         .-*CURRENT-----------------------.    |
   '-CCSID(--+-*USRPRF------------------------+--)-'
             +-*SYSVAL------------------------+
             +-*HEX---------------------------+
             '-coded-character-set-identifier-'
 
>--+-----------------------------------------------+------------>
   |          .-*CURRENT----------------------.    |
   '-SBMFOR(--+-job-number/user-name/job-name-+--)-'
 
>--+------------------------------------------------------+----->
   |             .-*JOBD-----------------------------.    |
   '-JOBMSGQMX(--+-*SYSVAL---------------------------+--)-'
                 '-maximum-size-of-job-message-queue-'
 
>--+-----------------------------+------------------------------>
   |             .-*JOBD----.    |
   '-JOBMSGQFL(--+-*SYSVAL--+--)-'
                 +-*NOWRAP--+
                 +-*WRAP----+
                 '-*PRTWRAP-'
 
>--+-------------------------+--+--------------------------+---->
   |             .-*NO--.    |  |             .-*JOBD-.    |
   '-CPYENVVAR(--+-*YES-+--)-'  '-ALWMLTTHD(--+-*NO---+--)-'
                                              '-*YES--'
 
>--+------------------------------------------------------+----->
   |             .-*CURRENT--------------------------.    |
   '-INLASPGRP(--+-*JOBD-----------------------------+--)-'
                 +-*NONE-----------------------------+
                 '-auxiliary-storage-pool-group-name-'
 
>--+---------------------------+-------------------------------><
   |           .-*CURRENT-.    |
   '-SPLFACN(--+-*JOBD----+--)-'
               +-*SYSVAL--+
               +-*KEEP----+
               '-*DETACH--'
 
 

Notes:

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

  2. A maximum of 250 repetitions.