Midrange News for the IBM i Community


Posted by: renojim
FTP lcd command not changing IFS directory
has no ratings.
Published: 29 Sep 2011
Revised: 23 Jan 2013 - 1765 days ago
Last viewed on: 23 Nov 2017 (5243 views) 

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.

FTP lcd command not changing IFS directory Published by: renojim on 29 Sep 2011 view comments(3)

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?

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: Paulster
Premium member *
Sweden and The Netherlands
Comment on: FTP lcd command not changing IFS directory
Posted: 6 years 1 months 24 days 15 hours 3 minutes ago

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

Posted by: DaleB
Premium member *
Reading, PA
Comment on: FTP lcd command not changing IFS directory
Posted: 6 years 1 months 24 days 7 hours 21 minutes ago
Edited: Fri, 30 Sep, 2011 at 08:55:11 (2246 days ago)

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."

Posted by: renojim
Premium member *
Comment on: FTP lcd command not changing IFS directory
Posted: 6 years 1 months 24 days 6 hours 29 minutes ago

Yep, that did it, thanks all!