Allowed copy operations and parameters

 

You can select certain members to copy under certain conditions with certain parameters.

This table shows the file types into which you can copy members or labels based on the source file type:

Table 1. File types into which you can copy members or labels based on the source file type
Diskette to: Database to:
Database (physical file) Database (physical file)
Diskette (Note 1) Diskette
Tape (Note 2) Tape (Note 2)
Printer Printer
*PRINT *PRINT
Notes:

  1. The to-file must be spooled for diskette-to-diskette copy operations.

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

This table shows the valid member or label parameters for copy commands:

Table 2. Valid member or label parameters for Copy commands
  FROMMBR1 FROMLABEL TOMBR TOLABEL
CPYF X   X  
CPYFRMDKT   X X  
CPYFRMQRYF     X  
CPYFRMTAP   X X  
CPYSRCF X   X  
CPYTODKT X     X
CPYTOTAP X      
CPYFRMIMPF X   X  
CPYTOIMPF X   X  
Notes:

1

FROMMBR is not a parameter on the CPYFRMQRYF command because the members to be queried are specified on the OPNQRYF command.

 

Parent topic:

Selecting members to copy