You cannot specify *NOKEY.
*ALL is optional. If *ALL is specified and the name operand
is a multiple occurrence data structure or a table name, all occurrences
or table elements are cleared and the occurrence level or table index
is set to 1.
The
name operand specifies the variable to
be cleared. The particular entry in the
name operand
determines the clear action as follows:
- Single occurrence data structure
- All fields are cleared in the order in which they are declared
within the structure.
- Multiple-occurrence data structure
- If *ALL is not specified, all fields in the current occurrence are cleared. If *ALL is specified,
all fields in all occurrences are cleared.
- Table name
- If *ALL is not specified, the current table
element is cleared. If *ALL is specified, all table elements are
cleared.
- Array name
- Entire array is cleared
- Array element (including indicators)
- Only the element specified is cleared.