| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Copy TCP/IP Host Table (CPYTCPHT) command is used to copy the contents of the TCP/IP host table to a physical file member. The resulting physical file member is used as input to the Merge TCP/IP Host Table (MRGTCPHT) command to modify the contents of the TCP/IP host table. The contents of the resulting physical file member must not be modified by any user program or database utility.
Note: This command copies the TCP/IP host table in *OPSYS format. See the MRGTCPHT command help text for more details.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| TOFILE | To file | Qualified object name | Optional |
| Qualifier 1: To file | Name, QTCPHT | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| TOMBR | To member | Name, *FIRST | Optional |
| MBROPT | Replace or add records | *REPLACE, *ADD | Optional |
| Top |
Specifies the physical file to which the TCP/IP host table is copied. If the file does not exist, a physical file is created in the specified library. If the file is created, the public authority for the file is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
Qualifier 1: To file
Qualifier 2: Library
| Top |
Specifies the name of the physical file member to which the TCP/IP host table is copied.
| Top |
Specifies whether the new records replace or are added to the existing records.
| Top |
Example 1: Copying Host Table Using Defaults
CPYTCPHT
This command will do the following:
Example 2: Copying Host Table to a Specific File Member
CPYTCPHT TOFILE(MYLIB/MYFILE) TOMBR(MBR2) MBROPT(*ADD)
This command will do the following:
| Top |
| Top |