IDMSRSTT Macro Statements

IDMSRSTT macro statements define the changes to be made to the database during a restructure operation. The statements reflect the information in two schemas:
idmscu19
IDMSRSTT macro statements define the changes to be made to the database during a restructure operation. The statements reflect the information in two schemas:
  • An old schema
    that describes the database before restructuring
  • A new schema
    that describes the database after restructuring
You can code the IDMSRSTT macro statements sectionally, or you can use the IDMSRSTC utility to generate the statements automatically. In either case, you must assemble the statements into a base restructuring table, which is then used by the RESTRUCTURE and RESTRUCTURE CONNECT utility statements.
Statement descriptions
You assemble a base restructuring table from the following statements:
Statement
Description
IDMSRSTT BUFSIZE
One for a base restructuring table
IDMSRSTT RECNAME
One for each record type being modified
IDMSRSTT SETPTR
For each record type being modified:
If any pointers are being changed, one for each pointer in the record
If no pointers are being changed, one that specifies ALL
IDMSRSTT FIELD
For each record type being modified:
If the record is variable length or if the record is fixed length and one or more fields are being changed, one for each field or group of contiguous fields
If the record is fixed length and no fields are being changed, one that specifies ALL
IDMSRSTT END
One for each base restructuring table
END
One for each base restructuring table
Coding considerations
Use the following conventions when reviewing, modifying, or sectionally coding IDMSRSTT macro statements:
  • Code each statement in uppercase on a separate line, beginning in column 2, or greater
  • Do not code past column 72 on any line
  • To continue a statement on another line:
    • Put an X in column 72 of the line to be continued
    • Begin the continuation line in column 16
  • Use commas as place-holders for omitted macro parameters
  • Begin comment lines with an asterisk (*) in column 1
You can find the values that are required by the macro parameters in the old and new schema definitions and in reports that are generated by the IDMSRPTS utility.