Example for Changing the Data Set Record Format

For this example, the original DASDL description is as follows:

PARAMETERS
 (
  ALLOWEDCORE = 20000
 );
D DATA SET
 (
  A ALPHA(10);
  B BOOLEAN;
  N NUMBER(S5,2);
 );
S SET OF D KEY A;

To change a data set record format, perform the following steps:

  1. Alter the DASDL statements to the following. The asterisks (*) indicate changed lines.

    *  UPDATE;
       PARAMETERS
       (
    *   ALLOWEDCORE = 30000
       );
       D DATA SET
        (
         A ALPHA(10);
    *    G GROUP
    *     (
    *      P FIELD(8);
    *      Q REAL;
    *     );
    *    N NUMBER(S5,2) INITIALVALUE 0;
        );
    *  S SET OF D
    *    KEY A
    *    CHECKSUM = TRUE;
  2. Compile the DASDL description.

  3. Compile the DMSUPPORT library.

  4. Generate and run the Reorganization program.