Remap Set-Subset-Access

Remap set-subset-Access controls which embedded sets, subsets, and accesses are included in the remap. These items can be included exactly as they appear in the original data set, can be included and given a new name, or can be omitted altogether.

The following diagrams illustrate the syntax for remap set-subset-Access:

<remap set-subset-Access>

──┬──────────────────┬─┬─<Access name>────────────────────────┬────────►
  └─ <identifier> = ─┘ ├─<set name>───────────────────────────┤
                       └─<subset name>─┬──────────────────────┤
                                       └─<object subset name>─┘

►─┬───────────┬────────────────────────────────────────────────────────┤
  └─<comment>─┘

<object subset name>

── OF ─┬─<data set name>─┬─────────────────────────────────────────────┤
       └─<remap name>────┘

The following text describes the elements of the syntax diagram.

Explanation

When only the name of the item is specified, it appears exactly as it did in the original data set.

The name of the set, subset, or Access can be changed by using the <identifier> = option. The new name cannot exceed 17 characters.

When a set, subset, or Access is omitted from the remap, it cannot be used to retrieve records from the data set. The system maintains the structure, whether it is included in the remap.

No sets, subsets, or Accesses are invoked by default; therefore, they must be explicitly invoked if they are to be used.

When the object subset name is specified, the manual subset is linked to the specified data set or remap during the invocation. If the OF clause is not specified, the manual subset is linked to the data set (if the data set is invoked) or the last remap invoked in the logical database.

The object subset name can be changed using a DASDL update operation. When the update is made the warning message “Object structure changed” is displayed. Any program that accesses this manual subset must be modified and recompiled.

Example

Record RD1 includes a remap of subset SE1, and record RD2 includes a remap of subset SE2.

D DATA SET
 (
  X ALPHA(1);
  E DATA SET
   (
    M FIELD(4);
    N NUMBER(5);
    P REAL;
   );
  SE1 SET OF E KEY (M,P);
  SE2 SET OF E KEY N;
  RE REMAPS E (M; P);
 );
RD1 REMAPS D (X;RE;SE1);
RD2 REMAPS D (X;RE;SE2);
RD3 REMAPS D (X);