iSeries™ gives you
several options for copying file members.
Copy 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.
Copy all members within a file
For database files, copy all members by specifying *ALL on the the FROMMBR or FROMLABEL parameter.
Copy 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).
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.