Allows to put a local file on a FTP server.
Syntax
CHGVAR |
VAR(&CMD) VALUE('FTPPUTFILE') |
CHGVAR |
VAR(&PARM1) VALUE(' LocalFile="Local file to put on the FTP server" NewRemoteFile="New file put on the FTP server" ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
LocalFile : Complete path and name of the local file to put on the FTP server.
NewRemoteFile : Complete path from the FTP server root (‘/’) and name of the new file put on the FTP server.
|
RESULT |
Contains eventually error messages.
|
|
|
Example
LNCCMD CMD(FTPPUTFILE)
PARM1('LocalFile="C:\temp\lnctoxls_test5.xlsx";+
NewRemoteFile="/www/Data/temp/lnctoxls_test5.xlsx"')