I would like to copy a multi-volume data set using FILECOPY. Is it required to specify all chained volumes of a multi-volume data set for FILECOPY or it is sufficient to code the first volume only?
Just specify the first volume of a multi-volume data set in the FILECOPY control statements. The chained volumes are automatically selected.
Actually any volume of the chain could be specified, does not necessarily need to be the first volume. However, this is not recommended, since it might be confusing.
If you code more than one volume for the multi-volume data set and you run FILECOPY with MERGE=YES (the default), then the multi-volume data set is copied only once and duplicates belonging to the same multi-volume chain are ignored.
If you code more than one volume for the multi-volume data set and you run FILECOPY with MERGE=NO, then the entire set is copied multiple times, since each volume specified and its chained volumes, are processed separately.