z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Partitioned Data Sets

z/OS DFSMSdfp Utilities
SC23-6864-00

Table 1 shows basic and optional move and copy operations for partitioned data sets.

Table 1. Moving and copying partitioned data sets
Operation Basic Actions Optional Actions
Move Partitioned Move the data set. Scratch the source data. For cataloged data sets, update the appropriate catalog to refer to the moved data set. Prevent automatic cataloging of the moved data set. Rename the moved data set. Reallocate directory space, if the space was allocated by IEHMOVE during the move. Merge two or more data sets. Move only selected members. Replace members. Unload the data set.
Copy Partitioned Copy the data set. The source data is not scratched. The catalog is not updated to refer to the copied data set. Delete the catalog entry for the source data set. Catalog the copied data set. Rename the copied data set. Reallocate directory space, unless the space previously allocated is partially used. Merge two or more data sets. Copy only selected members. Replace members. Unload the data set.

Figure 1 shows a copied partitioned data set. IEHMOVE moves or copies partitioned members in the order in which they appear in the partitioned directory. That is, moved or copied members are placed in collating sequence on the receiving volume. The IEBCOPY utility program can be used to copy data sets whose members are not to be collated.

Figure 1. Partitioned Data Set Before and After an IEHMOVE Copy Operation
REQTEXT

Members that are merged into an existing data set are placed, in collating sequence, after the last member in the existing data set. If the target data set contains a member with the same name as the data set to be moved, the member will not be moved or copied unless the REPLACE statement is coded.

Figure 2 shows members from one data set merged into an existing data set. Members B and F are copied in collating sequence.

Figure 2. Merging Two Data Sets Using IEHMOVE
REQTEXT

Figure 3 shows how members from two data sets are merged into an existing data set. Members from additional data sets can be merged in a like manner. Members F, B, D and E from the source data sets are copied in collating sequence.

Figure 3. Merging Three Data Sets Using IEHMOVE
REQTEXT

Related reading: For more information, see IEBCOPY (Library Copy) Program.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014