Allows to get a remote file present on a FTP server.
Syntax
CHGVAR |
VAR(&CMD) VALUE('FTPGETFILE') |
CHGVAR |
VAR(&PARM1) VALUE(' NewLocalFile="Local file got from FTP server"; RemoteFile="Remote file to get on FTP server" ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
NewLocalFile : complete path and name of the local file got from the FTP server.
RemoteFile : complete path from the FTP server root and name of the remote file to get on the FTP server.
|
RESULT |
Contains eventually error messages.
|
|
|
Example
LNCCMD
CMD(FTPGETFILE)+
PARM1('NewLocalFile="C:\temp\gettest.xlsx";+
RemoteFile="/www/Data/temp/lnctoxls_test5.xlsx"')