What kind of error are you getting? And which library are you using? It looks a bit like org.apache.commons.net.ftp.FTPClient, but that doesn't have a putFile method.
You may have to use the full IFS filename, which in that particular example would be "/QSYS.LIB/BZHLIB.LIB/CAI010F.FILE/CAI010F.MBR". That would be the case if the AS/400's FTP server were configured with NAMEFMT(*PATH). But if it were configured with NAMEFMT(*LIB) then what you showed should work.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32769
posted
0
"BZHLIB/CAI010F.CAI010F" can be the same as "/QSYS.LIB/BZHLIB.LIB/CAI010F.FILE/CAI010F.MBR"? Deep Magic. Of course, I've never been near an AS/400...