• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • How Does OS/400 FTP Determine Working Directories?

    June 7, 2002 Timothy Prickett Morgan

    Hey, Joe:

    How does OS/400 determine what the default current working directory or library (CD) is when a remote client starts an FTP session using an AS/400 or iSeries as a host FTP server? How can I change that default?

    — Barbara

    OS/400 sets the current working directory through universal properties that tell FTP where to retrieve this information from for any signed-on user starting an FTP session. These setting are maintained in two places: through the green-screen Change FTP Attributes (CHGFTPA) command and in the iSeries Operations Navigator (OpsNav) program that comes with Client Access Express for Windows and the earlier Client Access for Windows 95/NT software.

    The OS/400 FTP server contains two properties for determining how it assigns the current directory for signed-on clients: Initial Name Format (also called File naming format) and Initial Directory (also called Working directory). Initial Name Format determines the initial setting of the FTP File Naming Format (NAMEFMT) sub-command for each new FTP session. The choices here are *LIB (library/file.member format, which is the equivalent of issuing a SITE NAMEFMT 0 FTP sub-command to your host OS/400 FTP server from a signed-on client) or *PATH (the equivalent of issuing a SITE NAMEFMT 1 FTP sub-command from your client). When *LIB is selected, FTP transfers only take place between a native OS/400 library, a file/member name (where OS/400 FTP assumes the library and file member reside in the QSYS.LIB file system), and the target directory on the client’s machine. When *PATH is selected, FTP transfers can take place between a client and any location inside the iSeries Integrated File System (IFS), which also includes native OS/400 libraries and file/member names in QSYS.LIB. It’s also worth understanding that OS/400 FTP may automatically switch a session to use the *PATH format–NAMEFMT 1–when you designate a non-QSYS.LIB location for your current working directory.

    To determine the current directory for any new FTP session, OS/400 FTP uses the Initial Name Format property in conjunction with the Initial Directory property to retrieve and set the FTP client’s current directory on the OS/400 server. When the Initial Directory property is set to *CURLIB, FTP uses the Current Library parameter (CURLIB) in the OS/400 user profile that started the FTP session as its default current working directory. *CURLIB can be specified when the Initial Name Format property is equal to either *LIB or *PATH. When the Initial Directory property is set to *HOMEDIR, OS/400 FTP uses the signed-on user profile’s Home Directory parameter–HOMEDIR, which is always listed as an iSeries Integrated File System location–for the session’s current working directory. It’s important to note that when Initial Directory is set to *HOMEDIR, *PATH must be specified for the Initial Name Format property.

    OS/400 FTP retrieves either the signed-on user profile’s Current Library or his Home Directory for the session’s current directory, depending on how your FTP properties are set. If *CURLIB is selected for the Initial Directory and the signed-on user profile has no Current Library parameter entered (as specified by a user profile CURLIB value of *CRTDFT), OS/400 FTP will automatically use library QGPL as the current working directory. If *HOMELIB is selected and the signed-on user profile has no Home Directory parameter specified, FTP will automatically specify the root (/) directory in the iSeries IFS as the default working directory.

    To determine what the default working directory will be for a particular user’s client FTP session, you need to review these FTP property settings as well as the initiating user profile’s CURLIB or HOMEDIR parameter settings. Just remember that these are universal settings that are applied to all user profiles starting an FTP session with your iSeries or AS/400 host. You can’t have some users using the *CURLIB method while other use *PATH. It has to be a universal approach.

    To reset or view your FTP properties from the green-screen, enter the CHGFTPA command, press F4, and work with the Initial Name Format (NAMEFMT) and Initial Directory (CURDIR) parameters. From iSeries Operations Navigator, open the Network-Servers-TCP/IP node and right-click on the FTP entry in the returned list of TCP/IP servers. From the pop-up menu that appears, select Properties, and you’ll find these FTP server parameters listed under the Initial Formats tab on the FTP Properties screen (and just to confuse things, IBM named these properties File naming format and Working directory on this screen). You can use either CHGFTPA or OpsNav to adjust these properties; a change made using one tool will automatically show up in the other.

    — Joe

    Sponsored By
    WORKSRIGHT SOFTWARE

    On June 30, 2002,
    $$$$$$$$    Postal Rates will go UP!    $$$$$$$$

    On Monday, July 1st,
    $$$$$    your postage bill
    can go down.    $$$$$

    How can this happen? By CASS certifying your mailing names
    and addresses and presorting your outgoing mail. Our CASS certification software ensures that your address files
    have valid ZIP Code and address information. Our presort software ensures that you can properly prepare you mail
    for delivery to your Post Office.

    WorksRight Software,
    Inc. is the number-one source for iSeries and AS/400 CASS,
    presort, ZIP Code, and area code software and data.

    Visit our Web site – www.worksright.com –
    to learn more about our CASS and presorting software, or contact WorksRight Software, Inc., phone 601-856-8337,
    e-mail software@worksright.
    com
    .

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: mgo_rc, Volume 2, Number 44 -- June 7, 2002

    Sponsored by
    Maxava

    Migrate IBM i with Confidence

    Tired of costly and risky migrations? Maxava Migrate Live minimizes disruption with seamless transitions. Upgrading to Power10 or cloud hosted system, Maxava has you covered!

    Learn More

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Making PC5250 Look like a Dumb Terminal Reader Feedback and Insights: Printing Leading Zeros in Query/400, Another Look

    Leave a Reply Cancel reply

MGO Volume: 2 Issue: 44

This Issue Sponsored By

    Table of Contents

    • Printing Leading Zeros with Query/400
    • How Does OS/400 FTP Determine Working Directories?
    • Searching the Information Center

    Content archive

    • The Four Hundred
    • Four Hundred Stuff
    • Four Hundred Guru

    Recent Posts

    • Public Preview For Watson Code Assistant for i Available Soon
    • COMMON Youth Movement Continues at POWERUp 2025
    • IBM Preserves Memory Investments Across Power10 And Power11
    • Eradani Uses AI For New EDI And API Service
    • Picking Apart IBM’s $150 Billion In US Manufacturing And R&D
    • FAX/400 And CICS For i Are Dead. What Will IBM Kill Next?
    • Fresche Overhauls X-Analysis With Web UI, AI Smarts
    • Is It Time To Add The Rust Programming Language To IBM i?
    • Is IBM Going To Raise Prices On Power10 Expert Care?
    • IBM i PTF Guide, Volume 27, Number 20

    Subscribe

    To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

    Pages

    • About Us
    • Contact
    • Contributors
    • Four Hundred Monitor
    • IBM i PTF Guide
    • Media Kit
    • Subscribe

    Search

    Copyright © 2025 IT Jungle