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


Replacing Members in a Data Set

z/OS DFSMSdfp Utilities
SC23-6864-00

You can use IEBCOPY's COPY or COPYGRP or COPYGROUP statement to replace members on an output partitioned data set or PDSE. The explanations in this topic are for the COPY statement.

With the COPY statement you can perform the following tasks:
  • You can specify replacement on the data set level. In this case, every member of an input data set will be copied to the output data set. Each member on the output data set that has a name identical to the name of a member on the input data set will be replaced.
  • You can indicate replacement on the member level. In this case, you can indicate that a particular member of the input data set is to replace an identically named member of the output data set, and indicate that another member is to be copied only if it is not already present on the output data set.

    When you specify replacement on the member level, you can also rename an input member. The output data set directory is searched for the new name to see if the member should be copied. For instance, you could rename member A to B, and have it replace member B on the output data set.

Related reading: For information about replacing members using COPYGRP, See Copying Program Objects (COPYGRP and COPYGROUP Statements).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014