COPYGROUP statement
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.
The syntax of the COPYGROUP statement is:
| Label | Statement | Parameters |
|---|---|---|
|
[label]
|
COPYGROUP
|
OUTDD=DDname
,INDD={DDname|((DDname,R))} [Y,LIST={YES | NO}] [Y,GENS={ALL| NONE}] |
Where:
- OUTDD=DDname
- Specifies the name of a DD statement that locates the output data set.
- INDD={DDname| ((DDname,R))}
- Specifies the
name of a DD statement that locates the input data set.
Restriction: Multiple INDD statements are not allowed for COPYGROUP.
These values can be coded:- DDname
- Specifies the ddname, which is specified on a DD statement, of an input data set.
- R
- Specifies that a group to be copied or loaded from this input data set is to replace a group in the output data set. When this option is specified, the ddname and the R parameter must be enclosed in a set of parentheses; and the entire field, except the INDD parameter, must be enclosed in a second set of parentheses.
- LIST={YES|NO}
- Specifies whether the names of copied members are to be listed in the SYSPRINT data set at the end of each input data set. When this parameter is omitted, the default from the EXEC PARM field applies.
- GENS={ALL|NONE}
- Indicates whether the member generations of a Version 2 PDSE are copied. This keyword is valid
only when copying from a PDSE V2 with member generations to another.
- GENS=ALL
- Specifies that all members and generations to be copied from this input PDSE data set are to replace any identically named members on the output PDSE data set.
- GENS=NONE
- Specifies not to copy the member generations of the input PDSE data set.