// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import org.apache.commons.net.ftp.FTPClient

FTPClient vmssys = new FTPClient()
vmssys.connect("192.168.0.10")
vmssys.login("arne", "xxxxxx")
vmssys.enterLocalPassiveMode()
try (os = new FileOutputStream("login3.txt")) {
    vmssys.retrieveFile("LOGIN.COM", os) 
}
vmssys.disconnect()
