DFSMSdfp utility enhancements for z/OS V2R1

z/OS® V2R1 adds the following DFSMSdfp utility enhancements:
  • The IEBCOPY utility is enhanced with user exit capabilities for specifying control statements and for specific member selection.
  • IEBCOPY's group copy function is expanded to include PDS to PDS member group copies. A new statement, COPYGROUP, provides the same functions as the existing COPYGRP statement, and expands it to support group copies when both the input and the output data set are PDSs.
  • IEBCOPY's SELECT statement also has been enhanced to allow wild card characters in the specification of member names, when used with the COPYGROUP statement. Member name filter pattern masking, using the asterisk (*) and percent (%) characters, allows you to specify a wide range of similar member names. If you use member name filter pattern matching on a SELECT statement with COPYGROUP, you can also code a corresponding EXCLUDE statement with member name filter pattern matching.

The IEBCOPY utility is also enhanced to provide an ABEND code and the associated reason code in a structure returned in register 0, for certain ABENDs. Starting in z/OS V2R1, IEBCOPY returns this information if an ABEND occurs in the FAMS subcomponent. For details, see the IEBCOPY return code information in Appendix A of z/OS DFSMSdfp Utilities.

Also in z/OS V2R1, IEBCOPY introduces a new COPYGROUP statement that provides the same function as the COPYGRP statement but also performs that same function for a PDS to PDS copy. (With COPYGRP, when the input and output data sets are both PDSes, the operation is treated as a simple COPY operation, not a group copy.)

Use the COPYGROUP statement to begin a group copy, unload, or load. A group consists of a member and all of its aliases. COPYGROUP treats the group as a single entity.

You can use COPYGROUP to copy a data set in the following situations:
  • PDS to PDS
  • PDS to PDSE
  • PDSE to PDS
  • PDSE to PDSE.
You can use COPYGROUP for unloading groups in the following situations:
  • PDS to PS
  • PDSE to PS
You can use COPYGROUP for loading groups in the following situations:
  • PS to PDSE
  • PS to PDS
When using the COPYGROUP statement:
  • All aliases in a group will be copied with the member or neither the aliases nor the member in a group will be copied.
  • There can be only one INDD per copy operation.
  • You can use the SELECT statement to selectively copy members. Either the member name or an alias can be specified to copy the member and all of its aliases.
  • Do not indicate replace (R) on the SELECT statement.
  • The EXCLUDE statement is not supported unless a SELECT MEMBER statement uses pattern filter matching and the EXCLUDE statement does also.
For complete details on using the new COPYGROUP statement, see the IEBCOPY chapter in z/OS DFSMSdfp Utilities.