Command reference / comm

CHGFTPA

Change FTP Attributes

Changes FTP server settings. A changed setting generally applies when a new FTP connection is established.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

AUTOSTART Autostart server

Choose whether FTP starts with STRTCP or STRTCPSVR SERVER(*AUTOSTART). An explicit request to start FTP ignores this setting.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *YES, *NO

*SAME
Keep the current autostart value that was previously set; otherwise, *YES is used.
*YES
Start the number of servers defined in the NBRSVR parameter.
*NO
Do not start the number of servers defined in the NBRSVR parameter when the STRTCP command is called.

NBRSVR Number of initial servers

Set the initial FTP server count, from 1 through 20. The shipped default is 3.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 20
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current number of servers that was previously set.
*DFT
The number of servers is set to the default value of 3.
1-20
Enter the number of FTP servers to start. Once the FTP servers are running, you can increase or decrease the number of servers.

INACTTIMO Inactivity timeout

Set how many seconds of inactivity an FTP connection can have before it closes. Use zero to disable the timeout.

Type
*INT4
Required
No
Default
*SAME
Range
0 to 2147483
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
The time-out value does not change if it was previously set; otherwise, 0 seconds is used.
*DFT
The time-out value is set to the default of 300 seconds (5 minutes).
0-2147483647
Enter an inactive time-out period in seconds. A value of 0 means that there is no time-out.

CCSID Coded character set identifier

Sets the ASCII coded-character set identifier (CCSID) that is used for single-byte character set (SBCS) ASCII file transfers when the FTP TYPE mode is set to ASCII. ASCII file transfers are also assumed when no TYPE subcommand has been issued. The CCSID value chosen is the default used by the FTP server for ASCII-to-EBCDIC and EBCDIC-to-ASCII mapping.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 65533
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
Keep the current CCSID value that was previously set; otherwise, 00819 (ISO 8859-1 8-bit ASCII) is used.
*DFT
The CCSID value is 00819 (ISO 8859-1 8-bit ASCII).
1-65533
Enter the CCSID value to be used. This value is validated to ensure a valid SBCS CCSID has been requested.

TBLFTPOUT Outgoing EBCDIC/ASCII table

Sets the table object that is to be used to map all outgoing server data in FTP. Outgoing server data is mapped from EBCDIC to ASCII.

Type
*ELEM
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *CCSID, *DFT

*SAME
The TBLFTPOUT value does not change if it was previously set; otherwise, *CCSID is used.
*CCSID
The CCSID parameter is used to determine outgoing mapping.
*DFT
The CCSID parameter is used to determine outgoing mapping.
name (outgoing ebcdic/ascii table)
Enter the name of the table object to be used for mapping the outgoing FTP server data.
*LIBL
All libraries in the user and system portions of the job's library list are searched until the first match is found.
*CURLIB
Look in the current library, falling back to QGPL.
name (library)
Enter the name of the library to be searched.
Elements in order

Outgoing EBCDIC/ASCII table Outgoing EBCDIC/ASCII table

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

Outgoing EBCDIC/ASCII table Outgoing EBCDIC/ASCII table

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

TBLFTPIN Incoming ASCII/EBCDIC table

Sets the table object that is used to map all incoming server data in FTP. Incoming server data is mapped from ASCII to EBCDIC.

Type
*ELEM
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *CCSID, *DFT

*SAME
The TBLFTPIN value does not change if it was previously set; otherwise, *CCSID is used.
*CCSID
The CCSID parameter is used to determine incoming mapping.
*DFT
The CCSID parameter is used to determine incoming mapping.
name (incoming ascii/ebcdic table)
Enter the name of the table object to be used for mapping the incoming FTP server data.
*LIBL
All libraries in the user and system portions of the job's library list are searched until the first match is found.
*CURLIB
Look in the current library, falling back to QGPL.
name (library)
Enter the name of the library to be searched.
Elements in order

Incoming ASCII/EBCDIC table Incoming ASCII/EBCDIC table

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

Incoming ASCII/EBCDIC table Incoming ASCII/EBCDIC table

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

NAMEFMT Initial name format

Choose the initial file naming format for new FTP sessions.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *LIB, *PATH

*SAME
Keep the current initial name format that was previously set; otherwise, *LIB is used.
*LIB
The LIBRARY/FILE.MEMBER naming format is used. This is equivalent to specifying the SITE NAMEFMT 0 subcommand to the FTP server.
*PATH
The path naming format is used for files. This setting is equivalent to specifying the SITE NAMEFMT 1 subcommand to the FTP server.

CURDIR Initial directory

Choose the initial working directory for users signing on to FTP. *HOMEDIR requires path-based naming.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *CURLIB, *HOMEDIR

*SAME
Keep the current initial directory that was previously set; otherwise, *CURLIB is used.
*CURLIB
The FTP server initializes the setting of the current working directory to the current library specified in the user profile of the user logged in to the FTP server.
*HOMEDIR
The FTP server initializes the setting of the current working directory to the home directory specified in the user profile of the user logged in to the FTP server. Note: CURDIR(*HOMEDIR) cannot be used with NAMEFMT(*LIB).

LISTFMT Initial list format

Sets the initial setting of LISTFMT (file listing format) for each new session established with the FTP server.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *DFT, *UNIX

*SAME
Keep the current initial list format that was previously set; otherwise, *DFT is used.
*DFT
The IBM i listing format is used. This setting is equivalent to specifying the SITE LISTFMT 0 subcommand to the IBM i FTP server.
*UNIX
The Unix listing format is used. This setting is equivalent to specifying the SITE LISTFMT 1 subcommand to the IBM i FTP server.

CRTCCSID New file CCSID

Sets the EBCDIC coded character set identifier (CCSID) to be used when creating new database files in libraries for ASCII file transfers.

Type
*INT4
Required
No
Default
*SAME
Range
1 to 65533
Case
Uppercase

Suggested / special values: *SAME, *CALC, *USER, *SYSVAL

*SAME
Keep the current new file CCSID value that was previously set; otherwise, *CALC is used.
*CALC
New database files created during ASCII file transfers use the related default EBCDIC CCSID of the ASCII line CCSID.
*USER
New database files created during ASCII file transfers use the CCSID specified in the user profile of the user logged in to the FTP server, or if this CCSID is 65535, the default CCSID determined by the language id specified in the user profile.
*SYSVAL
New database files created during ASCII file transfers use the CCSID specified by the QCCSID system value.
1-65533
Enter the CCSID to be used when creating new database files during ASCII file transfers. This value is validated to insure that a valid EBCDIC CCSID has been entered.

SBSD Subsystem description

Sets the subsystem description of the subsystem where FTP server jobs are to run. If the specified subsystem description does not exist, it is created.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *DFT

*SAME
The subsystem description value does not change if it was previously set; otherwise, *DFT is used.
*DFT
FTP server jobs run in subsystem QSYSWRK in library QSYS.
name (subsystem description)
Enter the name of the subsystem description where FTP server jobs are to be run.
name (library)
Enter the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Subsystem description Subsystem description

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Length
10
Case
Uppercase

ALWSSL Allow Transport Layer Security

Choose how the FTP server handles TLS-protected connections. SSL support can encrypt the control and data streams and authenticate clients by certificate.

Type
*CHAR
Required
No
Default
*SAME
Length
10
Case
Uppercase

Allowed values: *SAME, *YES, *NO, *ONLY

*SAME
Keep the current allow secure sockets layer value that was previously set; otherwise, *YES is used.
*YES
The IBM i FTP server accepts non-SSL FTP sessions.
*NO
The IBM i FTP server will only accept non-SSL FTP sessions.
*ONLY
Except for anonymous FTP users, the IBM i FTP server allows login only from SSL FTP sessions.

IBM command documentation

Generated from os/cl/catalog/CHGFTPA.json and os/cl/help/CHGFTPA.json.