FTP
Perform a file transfer of a file to a remote system.
Note: If the file was created using a WRITE function, the file will need to be closed using CLOSE before transferring.
Note: If an error is encountered, processing will terminate with a severe error.
Syntax
FTP(filename, server, username, password, directory)
Arguments
| Argument | Description |
|---|---|
| filename | The local file to be transferred |
| server | The remote server to connect to |
| username | The user name to connect with |
| password | The password to connect with |
| directory | The destination directory to use |
Results
| Result | Description | Default |
|---|---|---|
| Return | A null string. | None |
| %%RC | Always 0. | None |
| %%RM | A null string (''). | None |
| %%RV | Always set to 0. | None |