Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
I'm trying to ftp a file from the ifs on one machine to the ifs on another. Problem is it can't find the local file on the put. When I try to use LCD to set the local directory, it fails cause it wants library/file naming. What am I doing wrong? I mean, of course, other than not having become a truck driver instead of this?
Hi Reno,
Not to worry, try FTP statement 'namefmt 1' first and check out the attached link. If that don't work, we'll both apply for truck-driver. Already got my drivers license for truck with trailer, let me know when you have your license and we're good to go!
Link:
http://www.itjungle.com/tfh/tfh081202-story04.html
Good luck,
Paulster
A little elaboration... namefmt 1 sets IFS naming locally; quote site namefmt 1 sets it remotely (although I have this nagging feeling that if both are i OS, they might get set together). namefmt 0 sets it back to library/file naming. You can freely switch from library/file to IFS; current directory becomes /QSYS.LIB/SOMELIB.LIB. But to go from IFS to library/file, you must first set current directory to /QSYS.LIB/SOMELIB.LIB, then the "current directory" becomes SOMELIB. If you try to go from IFS naming to library/file naming with some other current directory, say /home, you get an error, "550 Current directory requires name format 1."