Previous Topic: Create VSAM Keyed Records Using the Copy CommandNext Topic: Modify the Key of an Existing Record


Update Records Using the Move Command

You can move VSAM keyed records using the move command (M).

Follow these steps:

  1. Type M on the line command of the line that you want to copy in the editor.
  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 record is moved 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.