Previous Topic: Update VSAM Keys Using the Insert CommandNext Topic: Update Records Using the Move Command


Create VSAM Keyed Records Using the Copy Command

You are can create VSAM keyed records using the copy command (C).

Follow these steps:

  1. Type C on the command line of the Edit Entry Panel screen.
  2. Press Enter.
  3. Type A (after) or B (before) on the line where you want the copied line to be located.
  4. Press Enter.

    The copied record is inserted before or after the record specified in the previous step with the same key, data, and length as the original line.

  5. Update the key value.
  6. Modify the record length if necessary by using the V line command.