Selecting members to copy
The system gives you several options for copying file members.
- Copying file members: Overview
You can copy multiple database members or diskette labels to corresponding like-named to-file members or labels. They can also be copied and concatenated, one after another, into a single to-file member or label.
- Allowed copy operations and parameters
You can select certain members to copy under certain conditions with certain parameters.
- Copying all members within a file
For database files, copy all members by specifying *ALL on the the FROMMBR or FROMLABEL parameter.
- Copying only certain members within a file
For database files, you first specify a generic name on the FROMMBR or FROMLABEL parameter. You then modify the generic name to indicate the starting character string that each member or label has in common, and then follow it with an * (asterisk).
- Specifying the member name for the copy operation
You can specify various member names for the copy operation using the FROMMER and TOMER parameters.
- Special considerations for the Override Database File (OVRDBF) and Override Tape File (OVRTAPF) commands
You need to pay attention to the results of specifying certain parameters on the OVRDBF and OVRTAPF commands.
- How the copy function adds members to the to-file
The copy function adds a member to the to-file when the member does not exist. The member name used is either the TOMBR parameter value from the copy command, or the member name that is specified in an override for the to-file.
Parent topic:
Copying files
Related concepts
Copying physical or logical files