Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Copy Optical File (CPYOFRDAR) command copies a database file member to an optical file. Copy operations can be done from a physical or logical database member. You may copy data to a physical or logical optical file. No mapping of fields between the files is done by the copy operation. Therefore the data in both files must have the same field layouts and types. Records are always added to any existing records in the optical file.
Note: File overrides are not supported by this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FROMFILE | From database file | Qualified object name | Required, Positional 1 |
Qualifier 1: From database file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TOFILE | To optical file | Qualified object name | Optional, Positional 2 |
Qualifier 1: To optical file | Name, *FROMFILE | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
FROMMBR | From database file member | Name, *FIRST | Optional, Positional 3 |
Top |
Specifies the name of the database file from which records are copied (the source database file).
This is a required parameter.
Qualifier 1: From database file
Qualifier 2: Library
Top |
Specifies the name of the optical file to which records are copied (the target optical file).
Qualifier 1: To optical file
Qualifier 2: Library
Top |
Specifies the database member in the from-file that is being copied.
Top |
Top |
*ESCAPE Messages
Top |