Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Copy To PC Document (CPYTOPCD) command copies a member from a system database file to a PC document in a folder.
Note: Do not precede an entry with an asterisk unless that entry is a "special value" that is shown (on the display itself or in the help information) with an asterisk.
*ESCAPE Messages
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FROMFILE | From file | Qualified object name | Required, Positional 1 |
Qualifier 1: From file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TOFLR | To folder | Character value | Required, Positional 2 |
FROMMBR | From member | Name, *FIRST | Optional, Positional 3 |
TODOC | To document | Character value, *FROMMBR | Optional, Positional 4 |
REPLACE | Replace document | *NO, *YES | Optional, Positional 5 |
TRNTBL | Translate table | Single values: *DFT, *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Translate table | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TRNFMT | Format of PC data | *TEXT, *NOTEXT | Optional |
TRNIGC | DBCS code page | *DFT, *JPN, *CHT, *BG5, *CHS, *KOR, *KSC, *SCGS, *NONE | Optional |
RCDFMT | Record format | Name, *ALL | Optional |
Top |
Specifies the name and library of the database file you are copying data from. The file can be either a physical file or a logical file.
This is a required parameter.
The possible library values are:
If this file is a source file and the records are being translated from EBCDIC to ASCII, the line number and date are removed when the records are written in the PC document.
Top |
Specifies the name of the folder that contains the PC document being copied to.
The name can be a fully qualified path name of the form:
The path name can be up to 63 characters in length. All folders in the path must exist.
This is a required parameter.
Top |
Specifies the name of the member that is copied.
Top |
Specifies the name of the PC document in the folder to contain the copied database file member. If the document does not exist, it is created.
The filename can be from 1 to 8 characters, and the extension can be from 1 to 3 characters.
Top |
Specifies if an existing document is replaced by the copy operation.
Top |
Specifies if translation is performed and, if so, the name of the translation table used to translate the data from EBCDIC to ASCII.
Note: For a user defined double-byte character set, this parameter also specifies if translation is performed and, if so, which translation table is used for single-byte translation.
The format of the records in the PC document is handled by the Format of PC data prompt (TRNFMT parameter),
The possible library values are:
Top |
Specifies the format the records in the PC document are to have.
This parameter is not valid if *NONE is specified on the Translate table prompt (TRNTBL parameter).
Top |
Specifies the double-byte character set used for translation. Unless overridden by the Translate table prompt (TRNTBL parameter), this parameter also specifies the single-byte translation table.
Top |
Specifies the record format(s) of records to be copied. The possible values are:
Top |
Top |
Top |