30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TOMBR(*FROMMBR), TOLABEL(*FROMMBR), or TOMBR(*FROMLABEL)<br />

depending on the copy command used. If the to-file is tape, you cannot specify<br />

this unless you are copying from a single from-file member or label. *FROMMBR is<br />

the default value for the TOMBR parameter on the CPYSRCF command, which<br />

copies the from-file members to like-named to-file members.<br />

For more information:<br />

For additional information, see the following topics:<br />

v “How the copy function adds members to the to-file” on page 91<br />

v “Allowed copy operations and parameters”<br />

Allowed copy operations and parameters<br />

This table shows the file types into which you can copy members or labels based<br />

on the source file type:<br />

Diskette To: Database To:<br />

Database (physical file) Database (physical file)<br />

Diskette (Note 1) Diskette<br />

Tape (Note 2) Tape (Note 2)<br />

Printer Printer<br />

*PRINT *PRINT<br />

Notes:<br />

1. The to-file must be spooled for diskette-to-diskette copy operations.<br />

2. Multiple from-file members or labels can only be copied to a single tape file label.<br />

This table shows the valid member or label parameters for copy commands:<br />

Table 12. Valid Member or Label Parameters for Copy Commands<br />

FROMMBR 1<br />

FROMLABEL TOMBR TOLABEL<br />

CPYF X X<br />

CPYFRMDKT X X<br />

CPYFRMQRYF X<br />

CPYFRMTAP X X<br />

CPYSRCF X X<br />

CPYTODKT X X<br />

CPYTOTAP X<br />

CPYFRMIMPF X X<br />

CPYTOIMPF<br />

:<br />

X X<br />

1<br />

FROMMBR is not a parameter on the CPYFRMQRYF command because the<br />

members to be queried are specified on the OPNQRYF command.<br />

Copying all members or labels within a file<br />

For database or diskette files, copy all members by specifying *ALL on the the<br />

FROMMBR or FROMLABEL parameter.<br />

For diskette files, when you specify FROMLABEL(*ALL) on the CPYFRMDKT<br />

command and you specify a LABEL parameter value on an OVRDKTF command,<br />

only the single-file label identifier specified in the override is copied.<br />

Chapter 4. Copying files 89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!