This section describes the configuration parameters for the BatchFTP OTD, accessed from the Connectivity Map.
The BatchFTP Connectivity Map properties include the following sections:
General Settings (BatchFTP Connectivity Map)
Several of these configuration options allow you to use regular expressions. This advanced feature is useful but must be used carefully. An improperly formed regular expression can cause the creation of undesired data or even the loss of data. You must have a clear understanding of regular-expression syntax and construction before attempting to use this feature. It is recommended that you test such configurations thoroughly before moving them to production.
Pre-transfer operations are those performed before the file transfer. For more information, see Pre/Post File Transfer Commands.
The Pre Transfer section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 1 Connectivity Map - BatchFTP - Pre Transfer
Name |
Description |
Required Value |
---|---|---|
Specifies the directory name (path) on the external system to which a file is renamed or copied. The value can be a literal or a pattern name. This setting is only for the Rename or Copy operations of the Pre Transfer Command parameter. For outbound transfers, the directory is created if it does not already exist. See Table 1. See Using Name Patterns. |
Enter the exact name of the directory (with the path), enter a pattern name, or select one of the following values:
|
|
Specifies whether the directory name is interpreted as literal or as a name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
|
Specifies the file name on the external system, to which a file is renamed or copied. The value represents the file name. The value can be a literal or pattern name. This setting is only for the Rename or Copy operations of the Pre Transfer Command parameter. Special characters are allowed, for example, the pattern %f indicates the original working file name. See Table 1. See Using Name Patterns. |
Enter the exact name of the file, enter a pattern name, or select one of the following values:
|
|
Pre File Name Is Pattern |
Specifies whether the file name represents a literal or a name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
Pre Transfer Command |
Allows you to execute a desired action directly before the actual file transfer. For an inbound transfer, the file can be made unavailable to other clients polling the target system with the same directory and file pattern or name. For an outbound transfer, you can perform an automatic backup or clean-up of the existing files. The options are:
|
Select Rename, Copy, or None. The configured default is None. Note – The Copy option could slow system performance, especially if you are copying a large file. |
The BatchFTP SOCKS supports two negotiation methods: NO-AUTHENTICATION and USER/PASSWORD. For more information on SOCKS, see SOCKS.
The SOCKS section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 2 Connectivity Map - BatchFTP - SOCKS
Name |
Description |
Required Value |
---|---|---|
Specifies whether the FTP command connection goes through a SOCKS server. If you choose No, the adapter does not connect to a SOCKS server. In this case, all other parameters under the SOCKS section are ignored. Note – If this parameter is set to Yes , the host name under the FTP configuration could fail to resolve some names, such as localhost or 127.0.0.1 correctly. Use real IP or machine names to represent the hosts. See Table 11 for more details. |
Select Yes or No. The configured default is No. |
|
Specifies the SOCKS server version. If you choose Unknown, the adapter detects the actual version for you. Note – For the best performance, specify the version number, 4 or 5. |
Select 4, 5, or Unknown. The configured default is Unknown. |
The FTP section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 3 Connectivity Map - BatchFTP - Pre Transfer
Name |
Description |
Required Value |
---|---|---|
Allows you to set the timeout of the FTP command/control connection socket. Normally, the larger the file you are transferring, the higher this value must be. Of course, the quality of the network connection also affects this setting. The value is in milliseconds. A timeout of zero is interpreted as an infinite timeout. |
An integer from 0 to 2147483647. The configured default is 45000. |
|
Allows you to set the timeout of the FTP data connection socket. Normally, a slow or busy network connection requires a higher timeout setting. The value is in milliseconds. A timeout of zero is interpreted as an infinite timeout. For setting the timeout of the command/control connection socket, see the parameter Command Connection Timeout. |
An integer from 0 to 2147483647. The configured default is 45000. |
|
Specifies the system that reflects the remote host. This parameter is used to determine the format in which the LIST command returns file-listing information.The Directory Listing Style values include User Defined1 - User Defined10 values. These user defined properties allow you to create multiple user-defined FTP heuristic configurations, and make these selectable from the BatchFTP Adapter properties. You can create corresponding heuristic configurations in the FtpHeuristics.cfg file under the User Defined sections. For more information on setting user defined FTP heuristic properties, see To Modify the FTP Heuristics Configuration File). Note – This property is superseded by any value specified in the User Defined Directory Listing Style property (see Table 3 ). The User Defined Directory Listing Style property value must be blank (empty) to enable the Directory Listing Style property |
One of the following values:
For more information, see Using FTP Heuristics. |
|
Specifies the name of a user-defined directory listing style (heuristics) that is available in the user-created FTP heuristics configuration file located on the logical host. This property works in conjunction with the properties Table 3 and Table 11. For details on how to use the User Defined Directory Listing Style seeTo Create a Custom Heuristics Configuration File Note – The BatchFTP OTD will generate an exception if a selected User Defined Directory Listing Style or the User Defined Heuristics Configuration File path is not defined correctly. If a User Defined Directory Listing Style is specified, a corresponding value must also be provided for the User Defined Heuristics Configuration File property. |
A text string value (default to blank) representing the directory listing style (heuristics) name which is defined in a user supplied heuristics configuration file. |
|
Allows you to prompt the adapter to enter either the passive or active mode. Normally, when you connect to an FTP site, the site establishes the data connection to your computer. However, some FTP sites allow passive transfers, meaning that your computer establishes the data connection. By default, the passive mode is used. It is recommended that you use this mode for transfers to and from FTP sites that support it. The passive mode can be required in the following situations:
|
Select Yes or No. The configured default is Yes. |
|
Specifies the mode used to transfer data to or from the FTP server, using the Ascii, Binary, or Ebcdic mode. If you choose Ebcdic, make sure of the following:
|
Select Ascii, Binary, or Ebcdic. The configured default is Binary. |
FTP raw commands are commands that are sent directly to the FTP server.
The FTP Raw Commands section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 4 Connectivity Map - BatchFTP - FTP Raw Commands
The Sequence Numbering section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
The Synchronized property, under General Settings, must be set to “Yes” to use Sequence Numbering.
Name |
Description |
Required Value |
---|---|---|
Use this parameter when you have set up the target directory or file name to contain a sequence number. It tells the adapter that when this value (the Max Sequence Number) is reached, to reset the sequence number to the Starting Sequence Number value. This parameter is used for the name pattern %#. See Using Name Patterns. |
An integer from 1 to 2147483647. The value of Max Sequence Number must be greater than that of Starting Sequence Number. |
|
Use this parameter when you have set up the target directory or file name to contain a sequence number. It tells the adapter which value to start with in the absence of a sequence number from the previous run. This parameter is used for the name pattern %#. When the Max Sequence Number value is reached, the sequence number rolls over to the Starting Sequence Number value. See Using Name Patterns. |
An integer from 0 to 2147483647. The value of the Starting Sequence Number must be less than the Max Sequence Number value. |
Post-transfer operations are those performed on remote (ftp) site after the real ftp transfer. For more information on this feature, see Pre/Post File Transfer Commands.
The Post Transfer section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 6 Connectivity Map - BatchFTP - Post Transfer
Name |
Description |
Required Value |
---|---|---|
Specifies the directory name (path) on the external system to which a file is renamed. The value can be a literal or pattern name. For an outbound transfer (to destination), the directory is created if it does not already exist. This setting is only for the Rename operation of the Post Transfer Command parameter. Special characters are allowed, for example, the pattern %f indicates the original working directory name. The expansion of any special characters is carried out each time this parameter is used. See Table 6. See Using Name Patterns. |
Enter the exact name of the directory (with the path), enter a pattern name, or select one of the following values:
|
|
Specifies whether the pattern entered for the directory represents a literal or a name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
|
Specifies the file name to which a file on an external system is renamed. The value represents the file name. The value can be a literal, or pattern name. This setting is only for Rename operation of Post Transfer Command parameter. Special characters are allowed. For example, the pattern %f indicates the original working file name. See Table 6. See Using Name Patterns. |
Enter the exact name of the file, enter a pattern name, or select one of the following values:
|
|
Specifies whether the pattern entered for the file name is interpreted as literal or as a name pattern , as follows:
|
Select Yes or No. The configured default is Yes |
|
Allows you to execute a desired action directly after the actual file transfer or during the “commit” phase. For an inbound transfer, you can mark the transferred file as “consumed” by making an automatic backup (Rename) or by destroying it permanently (Delete). For an outbound transfer, you can make the transferred file available to other clients by renaming it. The options are:
|
Select Rename, Delete, or None. The configured default is None. |
The Target Location section allows you to configure the parameters for the Target Location (remote location) of the FTP directories and files.
The Target Location section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 7 Connectivity Map - BatchFTP - Target Location
Name |
Description |
Required Value |
---|---|---|
Specifies whether to overwrite or append the data to the existing file. Use this parameter for outbound FTP transfers only. Choose the appropriate setting as follows:
|
Select Yes or No. The configured default is No. |
|
Specifies the directory on the external system from which files are retrieved or sent. The directory name and path is preferred, otherwise, the path is relative to your home directory when you log on to the FTP server. The value can be a literal, regular expression (source), or pattern name (destination). For outbound FTP operations (destination), the directory is created if it does not already exist. See Table 7. |
A directory name and path on the target external system. |
|
Specifies whether the directory name is represented as literal, or as a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is No. |
|
Specifies the name of the remote FTP file to be retrieved or sent. The value can be a literal, regular expression (get), or pattern name (put). For MVS GDG systems, the target file name can be the version of the data set, for example:
|
For inbound: a literal file name or a regular expression. For outbound: a literal file name or name pattern. |
|
Specifies whether the target file name represents a literal, or as a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
The SSH Tunneling section provides information for configuring the SSH Tunneling properties. If Secure FTP (FTP over SSH or FTP over SSL) is required, use the Secure FTP OTDs (BatchFTPOverSSL, BatchSFTP, and BatchSCP).
The SSH Tunneling section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 8 Connectivity Map - BatchFTP - SSH Tunneling
Name |
Description |
Required Value |
---|---|---|
Specifies whether the adapter needs to launch an SSH subprocess. Selecting No indicates that the SSH channel has not yet been established. The adapter spawns a subprocess internally then establishes the channel on your behalf. If you select No, you must set the following parameters:
|
Select Yes or No. The configured default is No. |
|
Specifies the command line used to establish an SSH channel. This parameter is required only when you set the SSH Channel Established parameter to No. This entry must be the complete, correct command line required by the additional software application you are using to support SSH tunneling. This command line is executed as it is, so you must be sure of the following:
|
A valid SSH command line. |
|
(Continued from last page) The command-line syntax can differ, depending on the type of SSH client implementation you are using. See your SSH-tunneling support software user documentation for details. Examples: ssh -L 3456:ftp.sun.com:21 -o BatchMode=yes apple ssh -L 4567:apple:21 -o BatchMode=yes apple ssh -L 5678:orange:21 -o BatchMode=yes apple ssh -L 6789:orange:21 -g -o BatchMode=yes apple plink -L 4567:apple:21 apple plink -L 5678:orange:21 apple plink -L 6789:orange:21 -g apple | ||
Specifies whether the FTP command connection is secured through an SSH tunnel. If you choose No, all other parameters in this section are ignored. Note – If you want to use the SSH port-forwarding feature, you may need to reconfigure your FTP server, depending on what kind of server you are using and how it is currently configured. See your SSH documentation for more information. |
Select Yes or No. The configured default is No. |
The adapter’s SSH tunneling (also known as port forwarding) feature utilizes additional existing SSH-supporting software applications, for example, Plink on Windows or OpenSSH on UNIX (see Additional Software Requirements
For different SSH client implementations, the command syntax and environment configuration may vary. See your SSH-supporting application’s user guide for details.
SSH tunneling provides secure FTP command connections. This mechanism is based on an existing SSH port-forwarding configuration. You must configure SSH port forwarding on the SSH listen host before you configure the supporting adapter connection.
For example, on the Java CAPS client host localhost, you can issue a command, such as:
ssh -L 4567:apple:21 -o BatchMode=yes apple |
Under the adapter’s configuration for the previous example, you must specify:
localhost for the Environment parameter SSH Listen Host
4567 for the Environment parameter SSH Listen Port
In this case, the adapter connects to the FTP server apple:21 through an SSH tunnel. For more information on SSH tunneling, see SSH Tunneling Support.
It is possible to use SOCKS and SSH tunneling at the same time. However, this practice is not recommended.
The General Settings section of the BatchFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 9 Connectivity Map - BatchFTP - General Settings
Name |
Description |
Required Value |
---|---|---|
Specifically applies to legacy Batch Adapter Projects. Provides backward compatibility to allow Projects that were created using the Batch Adapter version 5.0.7 or earlier to be imported and deployed without a change in the adapters behavior. The selections are:
|
Yes or No. The default setting is Yes, simulating Projects created with Batch Adapter version 5.0.7 or earlier. |