5.7.11 GET
The GET command will receive the contents of a remote file and save it to a local file.
Syntax:
Command |
Keyword |
Value |
Developer notes |
GET |
FROM |
value |
Required. Remote file path. |
TO |
value |
Required. Local file path. |
|
NOT_EXIST |
*STATUS |
If this keyword is specified on the command, a NOT_EXIST status is returned if the remote file does not exist. |
|
FROM_ENCODING |
encoding |
Encoding is used to convert the FROM file content to an intermediate Unicode string. |
|
TO_ENCODING |
encoding |
Encoding is used to convert the intermediate Unicode string to target encoding. |
|
CONVERT |
*NO |
Default. No conversion. |
|
*YES |
Indicates that after each record size read, the data will be converted to the specified target encoding and written to the local file. |
||
RECORD_SIZE |
integer |
An integer value specifies the read size, in bytes, to be used on the source file. The default value is 1024 bytes. Refer to Comments / Warnings at the end of the PUT command. |
|
RECORD_DELIMITER |
*LF |
Add LF to the end of each converted record. |
|
|
|
||
*CRLF |
Add CRLF to the end of each converted record. |
||
*NONE |
Default. No record delimiter. |
||
DATALINK |
*PASV |
Default. Use passive mode. |
|
*PORT |
Use port mode. |
Example
GET FROM(/folder/file.csv) TO(/folder/file.csv)