LIBRARY rexxinet
ineterr = "ERROR"
inetheading = 1
DO
inetdial("ONLINE")
inetopen(, , "My test")
CATCH ERROR
CONDITION('M')
RETURN
END
myftpsite = "ftp.microsoft.com"
inetconnect("MyFtpHandle", myftpsite, "FTP")
inetdir("developr/visual_c")
inetfile("README.TXT", SEARCHPATH("%TEMP%") || "README.TXT")
inetclose("MyFtpHandle")
RETURN
CATCH ERROR
CONDITION('M')
FINALLY
inetclose() |