Altering Aggregate Items

Allowed Changes to Data Set Aggregate Items details the changes that can be made to data set aggregate items. An asterisk (*) refers to the explanatory note following the table.

Table 26. Allowed Changes to Data Set Aggregate Items

Option

Model

Update

File Format Conversion (No Item Changes)

Record Format Conversion (Item Changes)

Add new aggregate item.

No

No

No

Yes*

Delete existing aggregate item.

No

No

No

Yes

Change aggregate item size.

No

No

No

Yes

Change structure referenced by aggregate item.

No

No

Yes

Yes


Explanatory Note

The aggregate item can be initialized by performing a garbage collection on the target structure of the aggregate item. Assume the original DASDL description looks as follows:

D DATASET
 (D1   REAL;
  D2   ALPHA(10);
 );

And assume the new DASDL description looks as follows:

AG1 AGGREGATE (10) COUNT D2 NEQ "abcde";
AG2 AGGREGATE (S10) SUM (D1);
D DATASET
 (D1   REAL;
  D2   ALPHA (10);
 );

Then the following syntax initializes the aggregate items:

GENERATE <database name>;
GENERATE D CHECKAGGREGATE;