Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
90 <strong>File</strong> <strong>Management</strong> V4R5<br />
Copying only certain members or labels within a file<br />
For database or diskette files, you first specify a generic name on the FROMMBR<br />
or FROMLABEL parameter. You then modify the generic name to indicate the<br />
starting character string that each member or label has in common, then follow it<br />
with an * (asterisk). For example, if you specified FROMMBR(ORD*), the copy<br />
command would copy all database members or diskette labels that start with ORD.<br />
Note:<br />
v If a generic name is specified for the FROMLABEL parameter on the<br />
CPYFRMDKT command and a LABEL parameter value is also specified<br />
on an Override Diskette <strong>File</strong> (OVRDKTF) command, the command copies<br />
only the single-file label identifier that you specified on the override.<br />
v If you copy a generic set from a diskette, and a label that is being copied<br />
continues on another diskette volume, then the copy command copies all<br />
the affected labels on the continuation volume. This is also true when you<br />
copy all labels.<br />
Specifying the label identifier or member name for the copy<br />
operation<br />
If you specify TOMBR (*FIRST), the copy operation does not specify a label<br />
identifier. Therefore, you must specify a label identifier (LABEL parameter) either:<br />
v In the device file on an OVRDKTF command (for a diskette file) OR<br />
v On an OVRTAPF command (for a tape file)<br />
If you specify the special value *FIRST, *DKTF, or *TAPF on the copy command,<br />
then the copy command uses the label from the device file description.<br />
If the from-file is diskette or tape, the copy command uses the from-file label as<br />
the label for a diskette or tape to-file. If the to-file is a database file, the command<br />
uses the nonblank characters to the extreme right of the from-file label for the<br />
member name of the to-file. The command uses up to a maximum of either 10<br />
characters or to the period at the extreme right in the from-file label. The copy<br />
operation uses only valid member names for a database to-file. It does not ensure<br />
that a to-file label is valid for tape or diskette, so a label identifier that is<br />
nonstandard or not valid may be used for the to-file.<br />
If the from-file is a tape file that is not labeled, then a to-file member or label name<br />
is created that corresponds to the data file on the tape from-file in the form of<br />
CPYnnnnn, where nnnnn is the tape sequence number of the data file.<br />
If you specify a tape or diskette label in the FROMMBR or TOMBR parameter, it<br />
can have a maximum length of 10 characters. If the label contains special<br />
characters or more than 10 characters, you must specify the label on one of the<br />
following commands:<br />
v Create Tape <strong>File</strong> (CRTTAPF)<br />
v Change Tape <strong>File</strong> (CHGTAPF)<br />
v Override with Tape <strong>File</strong> (OVRTAPF)<br />
v Create Diskette <strong>File</strong> (CRTDKTF)<br />
v Change Diskette <strong>File</strong> (CHGDKTF)<br />
v Override with Diskette <strong>File</strong> (OVRDKTF)