iSeries™ provides many copy functions for database files and copy functions for device files. Each function has associated parameters and files types.
The following tables, (Table 1 and Table 2), provide a summary of the specific copy functions (using the copy commands) you can use for copying records by the types of files being copied from and to. The functions with their associated parameters are listed down the left side, and the file types (and if each can be a from-file and a to-file) are shown across the top. An X indicates that the associated parameter is valid for the type and use of file under which it occurs.
Copy function | Parameter | Database files1 | |||
---|---|---|---|---|---|
Physical | Logical | ||||
From | To | From | To | ||
Select files | FROMFILE2 | X | X | ||
TOFILE | X | ||||
Select members | FROMMBR | X | X | ||
TOMBR | X | ||||
Add to, replace, or update existing records | MBROPT | X | |||
Create the to-file | CRTFILE3 | X | X | X | |
Print copied, excluded, and error records | PRINT4 | X | X | X | |
Select by record format | RCDFMT | X | |||
Select by relative record number | FROMRCD | X | X5 | ||
TORCD | X | X5 | |||
Select by key field value | FROMKEY | X | X | ||
TOKEY | X | X | |||
Specify number of records to copy | NBRRCDS | X | X | ||
Select by character content | INCCHAR | X | X | ||
Select by field value | INCREL | X | X | ||
Process different database record formats | FMTOPT | X | X | X | |
Update sequence number and date | SRCOPT | X | X | X | |
Specify start value and increment | SRCSEQ | X | X | X | |
Print character and hex format | OUTFMT4 | X | X | X | |
Maximum recoverable errors allowed | ERRLVL | X | X | X | |
Disregard or include deleted records | COMPRESS6 | X | X | ||
Note:
|
Copy function | Parameter | Device Files | |||||||
---|---|---|---|---|---|---|---|---|---|
Inline data | Diskette | Tape | Printer | ||||||
From | To | From | To | From | To | From | To | ||
Select files | FROMFILE | X | X | X | |||||
TOFILE | X | X | X | ||||||
Select members | FROMMBR | X | X | ||||||
TOMBR | X | X | |||||||
Add to or replace existing records | MBROPT | ||||||||
Create the to-file | CRTFILE | ||||||||
Print copied or excluded records | PRINT2 | X | X | X | X | X | X | ||
Select by record format | RCDFMT | ||||||||
Select by relative record number | FROMRCD | X | X | X | |||||
TORCD | X | X | X | ||||||
Select by key field value | FROMKEY | ||||||||
TOKEY | |||||||||
Specify number of records to copy | NBRRCDS | X | X | X | |||||
Select by character content | INCCHAR | X | X | X | |||||
Select by field value | INCREL | ||||||||
Process different database record formats | FMTOPT | ||||||||
Update sequence number or date | SRCOPT | ||||||||
Specify start value and increment | SRCSEQ | ||||||||
Print character or hex format | OUTFMT2 | X | X | X | X | X | X | ||
Maximum recoverable errors allowed | ERRLVL | X | |||||||
Disregard or include deleted records | COMPRESS | ||||||||
Notes:
|