SITE (Send Information Used by a Server System)
The SITE IBM® i FTP server subcommand sends information or provides services that are used by the FTP server.
FTP server subcommand
SITE [ parameters]
IBM i FTP server supports these parameters for the SITE subcommand:
- LISTFMT 0
- The FTP server returns information for the LIST subcommand in the IBM i list format. The client on the IBM i platform supports both the IBM i format and the UNIX format.
- LISTFMT 1
- The FTP server returns information for the LIST subcommand in the UNIX style list format. The name of the file is the last item of each line returned. The client on the System i® platform supports both the i5/OS format and the UNIX style format.
- Return a message that indicates the current FTP server LISTFMT setting.Notes:
If you want to change the LISTFMT default on the server, use the LISTFMT option of the Change FTP attributes (CHGFTPA) command. You can also use System i Navigator to set this FTP server property:
- From System i Navigator, expand .
- In the right pane, right-click FTP and select Properties.
- Click the Initial Formats tab.
- Under the File List heading, click i5/OS or UNIX as the LISTFMT default on the FTP server.
- 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 include the library file system. Name format 1 must be used to work with all IBM i file systems other than the library file system.
- Return a message that contains the current server file name format.Note: You can configure the IBM i FTP server to 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.
- Display a message that contains the current FTP client CRTCCSID setting.
- NULLFLDS 0
- The FTP server does not allow transfer of database files that contain NULL fields. This is the default.
- NULLFLDS 1
- The FTP server allows the transfer of database files that contain NULL
fields.Note: The 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 NULL fields to an FTP server that is not on the IBM i platform, or if the transfer type results in codepage conversion of the data, then results are unpredictable.
- Return a message that indicates the current FTP server NULLFLDS setting.
- TRIM 0
- Set Trim option to OFF. The FTP server sends trailing blanks of database records.
- TRIM 1
- Set Trim option to ON. The FTP 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 FTP server does not send trailing blanks of database records for all transfers, including record structure and block mode.
- Returns a message that indicates the current setting of the FTP server
- Before this subcommand becomes available, trailing blanks of QSYS.LIB file system records are always removed before transferring the file to the FTP server.
- 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.