Previous Topic: Keyword Operands (Format 2)Next Topic: End GROUP (Format 4)


Required Operands (Format 3)

The format 3 GROUP clause describes a group of operands you can specify in any order, but you must code at least one operand in the group.


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

Following is an excerpt from the supplied SPOOL model that shows how to use the format 3 GROUP clause TYPE=REQUIRED.

      COMMAND SPOOL
 
         FORMAT CLASS=G
            OPERAND LIST=((RDR,6,TRAN=VUR,           -
                           SPOOLOPT=(RDR,DEVNONLY)), -
                         (RDR,4,TRAN=VUR,            -
                           SPOOLOPT=(RDR,RADRONLY)))
            OPERAND GROUP=RDR
         FORMAT END
 
->    RDR    GROUP TYPE=REQUIRED
               OPERAND GROUP=CLASS
               OPERAND LIST=((CONT,3),               -
                             (NOCONT,3))
               OPERAND LIST=((EOF,3),                -
                             (NOEOF,3))
               OPERAND LIST=((HOLD,2),               -
                             (NOHOLD,3))
            GROUP END

The RDR group includes TYPE=REQUIRED. You must enter one of the operands described in the RDR group whenever you issue the SPOOL RDR CLASS * command.