Previous Topic: End GROUP (Format 4)Next Topic: Differences Between REPEATS and OCCURS


Verb Descriptions (GROUP Clause)

The verbs you can use in a GROUP clause are:

label

Specifies a one- to eight-character name of the GROUP clause.

TYPE=OPTIONAL

None. You can enter one or more of the operands in this group.

TYPE=KEYWORD

Identifies the beginning of a group of operands that you must enter in a predefined order. The operands are required. For an example, see the format 2 GROUP clause in Keyword Operands (Format 2) in this chapter.

TYPE=REQUIRED

Identifies the beginning of a group of operands where you must enter at least one operand in any order. For an example, see the format 3 GROUP clause in Required Operands (Format 3) in this chapter.

REPEATS

Indicates this group of operands can occur more than once in a single command. For an example, see the format 4 GROUP clause in End GROUP (Format 4) in this chapter.

OCCURS=nnn

Replicates all the control blocks in the group nnn times.

As explained before, the difference between REPEATS and OCCURS is that REPEATS means operands in this group can replicate themselves an infinite number of times, limited only by the actual size of the command buffer. OCCURS means operands in the group replicate themselves a fixed number of times.

END

Signals the end of a group of operands.