Transferring Files with File Transfer Protocol (FTP)
This material is covered in the AS/400e Information Center under the TCP/IP
topic. For more information see “TCP/IP Topics in the Information Center” on
page xv.
Naming Format Indicator for AS/400 Names
A naming indicator, called NAMEFMT, enables the user to specify library file system
names in either the format used by FTP prior to V3R1 or in a path name format as
used by the integrated file system. The user selects the desired format by assigning
either a one or zero to the NAMEFMT value.
0 indicates that the name is in the original format that is supported by FTP for the
library file system prior to V3R1. Only library file system names can be entered
when NAMEFMT is 0.
1 indicates that a path name format is being used for the file name. This format
applies to all AS/400 file systems supported by FTP, including the library file
system (QSYS.LIB). This name format complies with the Integrated File System
naming rules.
The generic format for NAMEFMT=1 is:
[/filesystemname/]{directory/}filename
Notes:
1. On AS/400 FTP servers prior to V3R1, the NAMEFMT is assumed to be ’0’. For
V3R1 and subsequent releases, AS/400 FTP servers may have a NAMEFMT of
’0’ or ’1’. For non-AS/400 servers, the NAMEFMT value is considered as
unknown. The value of the server NAMEFMT value affects the default file
names created by the FTP client.
2. A fully-qualified name in NAMEFMT=1 begins with a slash followed by the name
of the file system. For example:
/QDLS/FOLDER/DOCUMENT
3. For NAMEFMT = 0, a fully-qualified name begins with the library name. For
example:
LIBNAME/FILENAME.MBRNAME
4. For NAMEFMT = 1, a partially-qualified name does not begin with a slash and
does not include the name of the file system. For example:
FOLDER/DOCUMENT
(where the working directory is /QDLS)
LIBNAME.LIB/FILEXYZ.FILE/MEMBER1.MBR
(where the working directory is /QSYS.LIB)
5. For NAMEFMT = 0, a partially-qualified name begins with the file name without
any slash. For example:
FILENAME.MBRNAME
(where the working directory is LIBNAME)
6. The NAMEFMT is set to “0” when an FTP session is started.
Chapter 7. File Transfer Protocol (FTP) Client 241