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:
-
Open the Directory List view.
-
Select from the Directory List view the data set you want to copy.
-
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.
-
Click Next.
-
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. -
Volume Serial
Specifies the volume serial. This step is mandatory if the data set is not cataloged. Otherwise, this step is optional.
-
-
Specify the disposition of the copy by selecting either SHR or OLD, or creating a new data set:
-
Select SHR if you want the copied data set to replace the contents of an existing data set. This option allows concurrent access to the data sets while the copy is in progress.
-
Select OLD if you want the copied data set to replace the contents of an existing data set. This option restricts access to the data sets while the copy is in progress.
-
Click the New button to create a new data set. If you select this option, you must take the following steps:
-
Specify the type of data set to create in the New Allocation group.
-
Click the Allocate button to open the Allocate wizard.
-
Complete the fields in the Allocate wizard and click Finish. For detailed information about the Allocate wizard, see Allocate.
-
-
-
(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. -
Click Next.
-
(Optional) Do one of the following to specify the layout:
-
Select from the drop-down list a layout displayed in your layout view.
-
Specify the layout data set and member name.
-
-
(Optional) Specify selection criteria. Do one of the following:
-
Type selection conditions into the selection criteria text box. For more information on valid selection conditions, see Condition Specifications.
-
Click Layout to build selection conditions based on the contents of the specified layout. For more information on modifying selection criteria, see Modify Layout Selection Conditions. If you specify selection criteria, you can click Validate to verify that the selection criteria listed are legitimate.
-
Click Import to import selection criteria from an existing selection criteria member. For more information on importing selection criteria, see Import Selection Criteria.
-
-
Click Next.
A summary page shows the options that you have selected. -
Click Finish
The Copy Wizard report view opens and displays information about the copy operation.