Data Set Name

The data set name identifies the data set that the set references. Sets can be declared for compact, direct, random, restart, standard, and unordered data sets. They cannot be declared for ordered data sets.

A set must be declared at the same level as the data set it references; that is, the set and data set must both be disjoint, or alternatively, they must be items of the same data set.

The following DASDL statements declare S-D as a set of the D data set and declare S-E as a set of the E data set:

D DATA SET
 (
  A ALPHA(3);
  E DATA SET
   (
    B BOOLEAN;
    R REAL;
   );
  S-E SET OF E KEY R;
 );
S-D SET OF D KEY IS A;