Sun Adapter for Batch User's Guide

Post Transfer (BatchSFTP Connectivity Map)

The Post Transfer section of the BatchSFTP Connectivity Map properties contains the top-level parameters displayed in this table.

Table 36 Connectivity Map - BatchSFTP - Post Transfer

Name 

Description 

Required Value 

Remote Dir Name

Specifies the directory name (path) on the remote system where the file the will be renamed or copied. T This is only for Rename or Copy of the Post Transfer Command. The value can be a literal, regular expression (source), or pattern name (destination).

For outbound (destination), the directory is created if it doesn’t already exist. 

Special characters are allowed. For example, the pattern %f means the original working directory name. The expansion of any special characters is carried out each time this parameter is used.

See Table 36.

See Using Regular Expressions or Using Name Patterns.

A directory name. 

Remote Dir Name Is Pattern

Specifies whether the Remote Directory Name represents a literal, or a regular expression or name pattern, as follows:

  • Yes: indicates that the name value you enter is assumed to be a name pattern or regular expression.

  • No: indicates that the name value entered is a literal, an exact match. No pattern matching or name expansion is done.

    See Table 36.

Select Yes or No.

The configured default is Yes.

Remote File Name

Specifies the file name on the external system. This setting is only for the Rename or Copy operations of Post Transfer Command parameter. The value can be a literal, regular expression (get), or pattern name (put).

Special characters are allowed, for example, the pattern %f indicates the original working file name. The expansion of any special characters is carried out each time this parameter is used.

See Table 36.

See Using Regular Expressions or Using Name Patterns.

A file name. 

Remote File Name Is Pattern

Specifies whether the Remote File Name represents a literal, or a regular expression or name pattern, as follows:

  • Yes: indicates that the name value you enter is assumed to be a name pattern or regular expression.

  • No: indicates that the name value entered is a literal, an exact match. No pattern matching or name expansion is done.

    See Table 36.

Select Yes or No.

The configured default is Yes.

Remote Post Command

Allows you to execute a desired action directly after the actual file transfer. For an inbound transfer, it can be applied to mark the transferred file as consumed by making an automatic backup (Rename) or by destroying it permanently (Delete). For an outbound transfer, it can be applied to make the transferred file available to other clients by renaming it.

  • Rename: Rename the transferred file.

  • Delete: Delete the transferred file.

  • None: Do nothing.


    Note –

    For Rename , if the destination file exists, different FTP servers may behave differently. For example, on some UNIX FTP servers, the destination file will be overwritten without extra message. On an NT FTP server, this will fail and get an exception. It does not define unified behavior, rather, it follows the native behavior of the corresponding FTP server.


Select Rename, Delete, or None.

The configured default is None.

Local Dir Name

Specifies the local directory name (path) to be used by Rename. The value can be a literal, regular expression (source), or pattern name (destination).

Special characters are allowed. The expansion of any special characters is carried out each time this 

parameter is used. 

See Table 36.

See Using Regular Expressions or Using Name Patterns.

When entering a path separator, use the forward slash “/” instead of the back slash “\”. The adapter interprets the back slash as a special character. For example, use c:/temp/dir.

A directory name. 

Local Dir Name Is Pattern

Specifies whether the Local Directory Name represents a literal, or a regular expression or name pattern, as follows:

  • Yes: indicates that the name value you enter is assumed to be a name pattern or regular expression.

  • No: indicates that the name value entered is a literal, an exact match. No pattern matching or name expansion is done.

    See Table 36.

Select Yes or No.The configured default is No.

Local File Name

Specifies the local file name to be used by Rename. The value can be a literal, regular expression (get), or pattern name (put).

Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used. 

See Table 36.

See Using Regular Expressions or Using Name Patterns.

A file name. 

Local File Name Is Pattern

Specifies whether the Local File Name represents a literal, or a regular expression or name pattern, as follows:

  • Yes: indicates that the name value you enter is assumed to be a name pattern or regular expression.

  • No: indicates that the name value entered is a literal, an exact match. No pattern matching or name expansion is done.

    See Table 36.

Select Yes or No.

The configured default is No.

Local Post Command

Allows you to execute a desired action directly after the actual file transfer. For an inbound transfer, the target file can be marked as

consumed by making an automatic backup (Rename) or by destroying it permanently (Delete).

For an outbound transfer the target file can be made available to other clients by renaming it. The options are: 

  • Rename: Rename the target file.

  • Delete: Delete the target file (inbound transfers only).

  • None: Do nothing.


    Note –

    Rename overwrites the file specified by the Local Dir Name and Local File Name properties, if they exist.


Select Rename, Delete, or None.

The configured default is None.