The following diagram illustrates the syntax for the data set logical option:
<data set logical option>
──/1\─ REQUIRED ALL ───────────────────────────────────────────────────┤
Explanation
The REQUIRED ALL option is used to ensure that all data items with the exception of Boolean items are assigned a nonnull value. Specifying REQUIRED ALL is equivalent to specifying REQUIRED for every data item in the data set for which REQUIRED is valid.
When a record is stored in the data set, the system tests all required items. If a required item contains a null value, the program performing the STORE operation receives an exception and the record is not stored.
Using the REQUIRED ALL option does not make an occurring item required.
Example
The following example illustrates the DASDL syntax for the data set logical option:
D DATA SET REQUIRED ALL ( A ALPHA(5); B BOOLEAN; G GROUP ( N NUMBER(S5,2); F FIELD(20); ) OCCURS 10 TIMES; R REAL NULL IS 0; );