The following tables ( Table 10 and Table 11) 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.
Table 10. Summary of Copy Functions for Database Files
| 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 |
|
| ||||
| |||||||||
Table 11. Summary of Copy Functions for Device Files
| Copy Function | Parameter | Device Files | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Inline Data | Diskette | Tape | Printer | ||||||||
| From | To | From | To | From | To | From | To | ||||
| Select files | FROMFILE | X |
| X1 |
| X |
|
|
| ||
| TOFILE |
|
|
| X1 |
| 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 |
|
|
|
|
|
|
|
| ||
| |||||||||||