1 SET 2 DEFAULT Sets your default directory on either the remote host or the local host. To set the default directory on a remote host, you must have an FTP session with a remote host. DCL Format SET DEFAULT [ /LOCAL ] directory UNIX Formats cd directory lcd directory 3 Parameters directory Required. Name of the directory to which to change the default. 3 Qualifiers /LOCAL Optional. Default: remote. Changes the working directory on the local host. 3 Examples 1.FTP> SET DEFAULT "/USR/USERS/ROLLINGS" 250 CWD command successful. Changes the remote working directory to /usr/users/rollings. 2.FTP> SET DEFAULT ~ 250 CWD command successful. 250 New default directory is /USR/USERS Changes the remote working directory back to the default login directory. 3.FTP> SET DEFAULT /LOCAL USER$1:[PRESS.CHECK] Local Directory now USER$1:[PRESS.CHECK] Changes your local working directory to USER$1:[PRESS.CHECK]. 2 ERROR_LEVEL Sets maximum tolerance level for errors: o ERROR - FTP tolerates errors and warnings and does not exit when running in batch mode. o SUCCESS - The default. FTP does not tolerate errors and exits when running in batch mode. o WARNING - FTP tolerates warnings and does not exit when running in batch mode. DCL Format SET ERROR_LEVEL error_level UNIX Format There is no UNIX equivalent for the SET ERROR_LEVEL command. 3 Parameters error_level Required. Severity of errors tolerated. Specify ERROR, SUCCESS, or WARNING. The default is SUCCESS. 3 Example FTP> SET ERROR_LEVEL ERROR Error level is ERROR. Sets the error level tolerance to ERROR. 2 PASSIVE Controls whether the FTP client or server initiates data connections. DCL Format SET PASSIVE keyword UNIX Format passive keyword 3 Parameters keyword The FTP client program starts with the value AUTO. All keyword comparisons are done without regard for typographical case (case- blind). o ALL Does nothing. o AUTO The FTP client uses the version of network protocol in use on the control connection to determine how the data connection is initiated. If the network protocol is IPv4, FTP client behaves as though SET PASSIVE OFF had been specified. If the network protocol is IPv6, FTP client behaves as though SET PASSIVE ON had been specified. o OFF The FTP server initiates the data connection. o ON The FTP client initiates the data connection. This is often useful when a network firewall exists on the path between the client and the server and prevents the FTP server from making outbound connections. 3 Example FTP> SET PASSIVE ON Passive is ON Sets passive mode to ON. The FTP client always initiates the data connection. FTP> PASSIVE AUTO Passive is AUTO (IPv4: OFF, IPv6: ON). Sets passive mode back to AUTO. 2 TYPE Defines the data representation type: o ASCII - Appropriate for text files (default). o IMAGE - Appropriate for transferring binary files, such as executable images. DCL Format SET TYPE type UNIX Format type type 3 Parameters type Required. Data representation type. Specify ASCII or IMAGE. If you do not use the SET TYPE command, the default is SET TYPE ASCII. 3 Example FTP> SET TYPE IMAGE 200 Type set to I. Sets the data representation type to IMAGE for files you transfer during the current FTP session.