![Read syntax diagram](./c.gif)
>>-+--------------------------+--------------------------------><
'-+-REPLACEUnconditional-+-'
'-REPUNC---------------'
REPLACEUNCONDITIONAL
specifies that DFSMSdss is to search the target
volumes for usable preallocated data sets. If a usable preallocated
target data set is found, it IS replaced. When used with the RENAMEUnconditional
keyword, usable preallocated data sets with the new name are replaced.
When used without the RENAMEUnconditional keyword, usable preallocated
data sets with the same name as the source data set are replaced.
If no preallocated target is found, DFSMSdss attempts to allocate
a data set. The REPLACE and REPLACEUnconditional keywords can not
be specified together.
See the REPLACE keyword description for
information about how target
volume selection is performed.
Note: - If REPLACEUNCONDITIONAL
is specified with the COPY command:
- The SMS constructs already associated with the preallocated
target
data set remain the same. If the preallocated target data set is scratched
and reallocated, the SMS constructs used are those returned by the
ACS routines for the source data set name.
- The CA Reclaim
attribute already associated with
the preallocated target data set remain the same.
- CATALOG
and RECATALOG are ignored for preallocated data sets.
- If the
source data set is an extended-addressable VSAM data set,
then the target must also be an extended-addressable VSAM data set.
- If the source is a large format sequential data set, but the preallocated
new name target is not a large format sequential data set, the preallocated
target will be used and turned into a large format sequential data
set as long as it has enough allocated space for the source data set.
If the preallocated new name target does not have enough allocated
space, it will be scratched and reallocated as a large format sequential
data set with enough space for the source data set. If the name of
the preallocated target is the same as the source data set, then see
the REPLACE keyword.