FTPDisconnect Action

Disconnect a connection to a FTP Server (created by 'FTPConnect').

Parameters

Connection – (Required)

Name of the connection that is to be disconnected. Should be the same name as specified in the 'FTPConnect' call.

Example

The following example creates an FTP connection to the IBMi, downloads the STATES.mbr file and places it into your local C:\Temp folder. The example assumes that there is a previously defined ftp connection 'iSeriesFTP'.

FTPConnect (testConnection, Connection=iSeriesFTP;)

FTPDownload (testConnection, STATES.MBR, /QSYS.LIB/DDM.LIB/STATES.FILE, FTPDownloadWait, FTPDownloadAbort)

FTPDisconnect (testConnection)

See Also

FTPConnect Action | FTPDownload Action | FTPUpload Action | FTPChangeFolder Action | FTPDelete Action | FTPNewFolder Action | FTPNewLibrary Action | FTPNewMember Action | FTPNewPhysicalFile Action | FTPQuote Action | FTPRename Action