Previous Topic: Repeating VSAM Keyed RecordsNext Topic: Create VSAM Keyed Records Using the Copy Command


Update VSAM Keys Using the Insert Command

You can add VSAM keyed records using the insert command.

Follow these steps:

  1. Type I on the command line of the Edit Data Set screen.

    A pop-up window displays requesting the inserted record length.

  2. Specify the new record length.
  3. Press Enter.

    The new record of the specified length is inserted below the original record. When in character display mode, a blank record is inserted. When in multi-record format mode, the inserted record is pre-initialized to the data types of the fields specified in the record layout. The new record's key is unprotected.

  4. Update the key value.

    Note the following:

  5. Modify the record length if necessary by using the V line command.