Previous Topic: Copy a Sequential FileNext Topic: Allocate


Copy a VSAM File

The copy utility lets you copy a data set into another existing data set or into a newly allocated data set.

Follow these steps:

  1. Open the Directory List view.
  2. Select from the Directory List view the data set you want to copy.
  3. Right-click and select Utilities, Copy VSAM.

    The Copy VSAM Utility wizard opens. The Data set name field displays the name of the data set you selected.

    Note: You can copy data sets not listed in your Directory List view by selecting Utilities, Copy from the CA File Master Plus menu. If you select this option, there is an additional page at the beginning of the wizard in which you identify the data set that you want to copy.

  4. Click Next.
  5. Specify where you want to copy the data set or members to:
    (Optional) Member name

    If you are copying the VSAM file to a PDS, you can select the specific member to which you want to copy the sequential file data.

    Note: For more information about identifying a member, see Select a Member.

    Volume serial

    Specifies the volume serial. This step is mandatory if the data set is not cataloged. Otherwise, this step is optional.

  6. Specify the disposition of the copy by selecting either SHR or OLD, or creating a new data set:
  7. (Optional) Select the Replace duplicate keys in KSDS replacement option.

    When a key exists in both the KSDS VSAM To and From data sets, keys in the From data set replace duplicate keys in the To data set. Select this check box to enable this replacement option. If this check box is not selected, encountering duplicate keys causes an abend.

  8. Click Next.
  9. (Optional) Do one of the following to specify the layout:
  10. (Optional) Specify selection criteria. Do one of the following:
  11. Click Next.

    A summary page shows the options that you have selected.

  12. Click Finish

    The Copy Wizard report view opens and displays information about the copy operation.

More information:

Copy Utility

Copy a PDS File

Copy a Sequential File

Select a Data Set

Select a Member