The PDSCOPY procedure can be used to copy an entire
partitioned data set, or you can specify which members you want to
copy. This procedure cannot be used to copy extended partitioned data
sets (PDSEs). PROC PDSCOPY is useful for backing up source libraries
and load module libraries to tape. If you use PROC PDSCOPY to copy
a PDS to tape, then you must also use it if you want to copy that
PDS back to disk. However, you can use either PROC PDSCOPY or other
copy utilities to copy that tape to another tape.
When libraries are moved
between disks that have different optimal block sizes, PROC PDSCOPY
can be used to reblock the libraries. PROC PDSCOPY handles overlay
programs and alias names. It also sets up the RLD count fields that
are used by the FETCH program.
When a PDS contains
load modules, it generally requires 13% to 18% less disk space after
being copied by PROC PDSCOPY, because PROC PDSCOPY uses free space
on a partially filled track to store records. The linkage editor constructs
records that do not fit on a partially used track.
The PDSCOPY procedure
does not copy scatter-loaded modules.
If errors are encountered
during PDSCOPY processing, the return code for the job step is set
to 8.