Previous Topic: GROUP ClauseNext Topic: Keyword Operands (Format 2)


Optional Operands (Format 1)

Use this GROUP clause to describe a group of optional operands you can specify in any order.


label GROUP TYPE=OPTIONAL                            {-}
            [{,REPEATS}]

In this format, REPEATS indicates that the group of operands can occur more than once in a single command. The supplied ORDER model, shown in the figure below, contains an example of using the REPEATS verb in a GROUP clause.


           COMMAND ORDER
 
              FORMAT CLASS=G
->                OPERAND VUR,7,TRAN=VUR,                   -
->                         SPOOLOPT=(PRT,PUN,RDR,DEVNONLY)
->                OPERAND GROUP=WHAT
              FORMAT END
 
->    WHAT     GROUP TYPE=OPTIONAL,REPEATS
->                OPERAND GROUP=CLASS
->                OPERAND GROUP=FORM
->                OPERAND GROUP=SPOOL
->             GROUP END
 
     CLASS    GROUP TYPE=KEYWORD
                 OPERAND CLASS,2
                 OPERAND C,1,TRAN=CLASS
              GROUP END
FORM     GROUP TYPE=KEYWORD
            OPERAND FORM,4
            OPERAND FORMNUM,8,TRAN=FORM
         GROUP END
 
SPOOL    GROUP TYPE=KEYWORD
            OPERAND SPOOLID,4,TRAN=SPOOL
         GROUP END
 
      COMMAND END

The VUR operand is described in the ORDER model. Here, there is no REPEATS verb. However, we describe the other operands you can enter when you specify the ORDER RDR ... command in a GROUP clause labeled WHAT.

The WHAT group clause includes REPEATS indicating the operands in the group can repeat. In effect, the RDR operand is constant, while the operands after RDR repeat. For example, if you issue the command ORDER RDR CLASS A FORM STD 9999, CA ACF2 for z/ VM and CP treat the command as three separate commands, such as:

ORDER RDR CLASS A
ORDER RDR FORM STD
ORDER RDR 9999