Open a FTP session with the FTP server specified into parameters.
Syntax
CHGVAR |
VAR(&CMD) VALUE('FTPCONNECT') |
CHGVAR |
VAR(&PARM1) VALUE(' ServerName="FTP server name" ;Username="FTP user name" ;Password="FTP user password" [;SSLEnable=true/false] [;ServerPort="FTP Port"] [;Logfile=true/false] ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
ServerName : FTP server name or IP address.
Username = FTP
user login. Password=FTP
user password. SSLEnable
:
true/false. Optional. If SSLEnable=true,
the FTP Secure protocol (FTP over TLS/SSL) is used. ServerPort : FTP server port. Optional. If not specified, by default, the port 21 is used for non-secure connections, and the port 990 is used for secure connections.
Logfile : true/false. Optional. If
Logfile=true, a logfile is created into %TEMP%.
|
RESULT |
Eventually, contains error messages.
|
|
|
Example
LNCCMD
CMD(FTPCONNECT)+ PARM1('ServerName="ftp.aura.com";+
username="aura";password="aura"')