SITE (Send Information Used by a Server System)

FTP server subcommand

To send information that is used by the server system or to provide services specific to the server system, use the SITE FTP server subcommand in this format:

SITE [ parameters]

iSeries™ FTP server supports these parameters for the SITE subcommand:

LISTFMT 0
The server returns information for the LIST subcommand in LIST Information in iSeries format, which was introduced in V3R1M0. The iSeries client supports both the iSeries format and the UNIX-style format.
LISTFMT 1
The server returns information for the LIST subcommand in LIST information in UNIX-style format. The name of the file is the last item of each line returned. The iSeries client supports both the iSeries format and the UNIX-style format.
LISTFMT
Return a message that indicates the current FTP server LISTFMT setting.
Notes:

If you want to change the LISTFMT default on the server, then use the LISTFMT option of the CHGFTPA command. You can also use iSeries Navigator to set this FTP server property:

  1. In iSeries Navigator, expand your iSeries server > Network > Servers > TCP/IP.
  2. In the right pane, right-click FTP and select Properties.
  3. Click the Initial Formats tab.
  4. Under the File List heading, enable iSeries or UNIX® as the LISTFMT default on the server.
  5. Click OK to accept the changes.
NAMEFMT 0
Use the LIBRARY/FILE.MEMBER name format. This name format is only for library file system database files.
NAMEFMT 1
Use the path name format. This name format is for all file systems that are supported by FTP that includes the library file system. Name format 1 must be used to work with all iSeries file systems other than the library file system.
NAMEFMT
Return a message that contains the current server file name format.
Note: You can configure the iSeries FTP server the default NAMEFMT setting with the NAMEFMT option of the CHGFTPA command.
CRTCCSID *CALC
New database files created during ASCII file transfers use the related default EBCDIC CCSID of the ASCII file transfer CCSID.
CRTCCSID *USER
New database files created during ASCII file transfers use the current job CCSID. If this CCSID is 65535, the default CCSID is determined by the language id that specifies the current job.
CRTCCSID *SYSVAL
New database files created during ASCII file transfers use the CCSID that was specified by the QCCSID system value.
CRTCCSID [CCSID-number]
Specify the CCSID when creating database files on the client during ASCII file transfers. The server validates this value.
CRTCCSID
Display a message that contains the current FTP client CRTCCSID setting.
NULLFLDS 0
The server does not allow transfer of database files that contain NULL fields. This is the default.
NULLFLDS 1
The server allows transfer of database files that contain NULL fields.
Note: Transfer of files that contain NULL fields requires both the client and server to have this setting enabled. If the server transfers a file that contains NULLfields to a non-iSeries server, or if the transfer type results in codepage conversion of the data, then results are unpredictable.
NULLFLDS
Return a message that indicates the current FTP server NULLFLDS setting.
TRIM 0
Set Trim option to OFF. The server sends trailing blanks of database records.
TRIM 1
Set Trim option to ON. The server does not send trailing blanks of database records when transferring database files that use file structure and stream mode. This is the default.
TRIM 2
The server does not send trailing blanks of database records for all transfers, including record structure and block mode.
TRIM
Returns a message that indicates the current setting of the FTP server Trim option.
Notes:
  1. Prior to the availability of this subcommand, trailing blanks of QSYS.LIB file system records were always removed before transferring the file to the server system.
  2. TRIM settings do not apply to TYPE I (binary) file transfers. Blanks are never trimmed for TYPE I file transfers, regardless of the TRIM setting.
Related tasks
Configure FTP servers for graphical FTP clients and Web tools
Related reference
Use the LIST subcommand information in iSeries format
LIST information in UNIX-style format
LIST (File List)
File Transfer Protocol server syntax conventions