Copying and repeating records

You can create copies of records in two different ways: by copying or by repeating records. Copying allows you to place the copied records anywhere in the data set. Repeating allows you to quickly duplicate a record, immediately after the selected record.

To copy records within the data set:

  1. Position your cursor in the prefix area of the first record that you wish to copy.
  2. Type the C or Cn prefix command, where n represents the number of records to be copied, or type CC on the first of a block of records to be copied and CC in the prefix area of the last record in the block.
  3. Press Enter. The prefix command is highlighted and the message "Prefix command pending" is displayed in the upper right corner of your screen.
  4. Move your cursor to the prefix area of the record where you would like to place the copied records
  5. Type one of the following prefix commands:
    A
    This command inserts the copied records after the current location.
    B
    This command inserts the copied records before the current location.
  6. Press Enter. The copied records are inserted at the new position.
Note: When you copy records with the C, Cn, or CC prefix commands, instead of copying the data after or before other records, you can choose to overlay the copied records on existing records in the data set you are editing. For details, see Overlaying data in existing records.

To repeat records:

  1. Position your cursor in the prefix area of the first record that you wish to repeat.
  2. Type the R or Rn prefix command, where n represents the number of records to be repeated, or type RR on the first of a block of records to be repeated and RR in the prefix area of the last record in the block.
  3. Press Enter. The copied records are inserted immediately below the last record selected for repeating.