Example for Changing Data Set Physical Options

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

D DATA SET
 (
  A ALPHA(10);
  B BOOLEAN;
  N NUMBER(S5,2);
  R REAL;
 )
  VERIFY R GEQ 0;
 S SET OF D
   KEY A;
 D
  (
   AREAS = 10,
   AREASIZE = 100 BLOCKS,
   BLOCKSIZE = 5 RECORDS,
   CHECKSUM = FALSE
  );

To change the data set physical options, perform the following steps:

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

    *   UPDATE;
        D DATA SET
         (
          A ALPHA(10);
          B BOOLEAN;
    *     N NUMBER(S5,2) REQUIRED;
          R REAL;
         )
    *     VERIFY B OR R GEQ 0;
          S SET OF D
            KEY A;
          D
           (
            AREAS = 10,
    *       AREASIZE = 50 BLOCKS,
    *       BLOCKSIZE = 20 RECORDS,
    *       CHECKSUM = TRUE,
    *       EXTENDED = TRUE,
    *       SECTIONS = 3
           );
  2. Compile the DASDL description.

  3. Generate and run the Reorganization program.