Summary -
In this topic, we described about the below sections -
Used for copying program objects. COPYGRP/COPYGROUP statement to copy PDS load modules or PDSE program objects and their aliases from or to a PDSE data set.
Program objects can have aliases that are longer than eight characters. Using the COPYGRP/COPYGROUPstatement ensures that aliases are copied along with their member.
COPYGRP/COPYGROUP statement can be used to begin a group copy, unload, or load. A group consists of a member and all of its aliases. COPYGRP/COPYGROUPtreats the group as a single entity.
COPYGRP can be used to copy a data set when either the input data set or the output data set or both, are PDSE:
- PDSE to PDSE
- PDSE to PDS
- PDS to PDSE
Using COPYGRP, PDSE to PSunloading groups can be done. Using COPYGRP, PS to PDSEloading groups can be done. When using the COPYGRP statement:
- All aliases in a group will be copied with the member.
- There can be only one INDD per copy operation.
- SELECT statement to selectively copy members.
- Do not indicate replace (R) on the SELECT statement.
- The EXCLUDE statement is not supported.
When using the COPYGROUP statement:
- Member name pattern masking can be used, instead of a full member name specification, to select multiple members from the input data set.
- If member name pattern masking is used, the member rename option will not be honored. Member name pattern masking and member rename are mutually exclusive.
COPYGROUP can be used to copy a data set when either the input data set or the output data set, or both, are PDS or PDSE:
- PDSE to PDSE
- PDSE to PDS
- PDS to PDSE
- PDS to PDS
Using COPYGROUP, PDSE to PS, or PDS to PS can be done. Using COPYGROUP, PS to PDSE, or PS to PDS can be done.