Defining File Transfer Objects

The steps for defining File Transfer objects (JOBF) are the same as for any other Automic object. This section describes the settings that are specific to only File Transfer objects.

An File Transfer definition is made up of the following pages:

XXX

Notes:

To Define a File Transfer Object

  1. In the Source Settings section specify the file to be transferred and its origin.

    Field Description
    Agent

    Select here the name of the agent where the file to be transferred resides.

    You can select an agent or an agent group. Please take into account that agent groups can be either source or target but not both.

    Login Login object that contains the necessary information for the file transfer to be able to log on to the target system.
    Code

    Select the Code Table that is relevant for the agent. When you enter a string, the find as you type function is available and list all hits containing the string you entered.

    In addition to the available Code Table objects, this list contains further options that can be used to transfer Unicode files:

    • <UTF 8>
    • <UCS 2BE>
    • <UCS 2LE>

    If you select any of these, the Code dropdown list in Destination Settings is not available and a code template is set in File.

    File

    Replace the ghost text with the file name(s). You can also enter a path. You can use wildcard for the file name, but not in the path.

    Partially Qualified File Transfer: Use a filter that comprises wildcard characters and fixed parts of the file name instead of specifying a complete file.

    Take into account the following:

    • VMS

      VMS agents do not resolve logical names. Specify here the directory and file name as, otherwise, the file cannot be found.

    • z/OS

      The specification of z/OS files depends on the file system that you use (USS or Host). For example:

      • USS file system (absolute path): /dir1/dir2/datei
      • USS file system (relative path): ./dir1/dir2/datei
      • Host file system: FLQN.DATASET.NAME

      On the USS file system file names have to be compliant to the EBCDIC International encoding. Otherwise file names on the target may not be correct

    • UNIX

      Please refer to the Call API Unix for parameters to be used and conditions that apply to file transfers under UNIX agents.

    File Attributes Additional entries for file attributes. Which attributes you can specify depends on the object's operating system. Please refer to Platform Specific Features for details.
  2. In the Destination Settings section specify the target of the file transfer.

    Field Description
    Agent

    Select here the name of the agent to which the file will be transferred.

    You can select an agent or an agent group. Please take into account that agent groups can be either source or target but not both.

    Login Login object that contains the necessary information for the file transfer to be able to log on to the target system.
    Code

    Select the Code Table that is relevant for the agent. When you enter a string, the find as you type function is available and list all hits containing the string you entered.

    If you have selected UTF-8, UCS 2BE or UCS 2LE as code of the source file, this field is not available.

    File

    Replace the ghost text with the file name(s). You can also enter a path. You can use wildcard for the file name, but not in the path.

    You can use the following variables in the target file name: &$SRC_AGENT#. The file transfer replaces this variable with the name of the file's original agent. Foe example:

    C:\temp\&$SRC_AGENT#_test*.txt

    Partially Qualified File Transfer: Use a filter that is composed of wildcard characters and fixed parts of the file name instead of specifying a complete file.

    File Attributes

    Additional entries for file attributes. Which attributes you can specify depends on the object's operating system. Please refer to Platform Specific Features for details.

    If you have selected UTF-8, UCS 2BE or UCS 2LE as code of the source file, this field is not available.

  3. In the Transfer Settings section specify the settings that will govern the transfer.

    Field Description
    File Format

    Select the format, how the file will be transferred.

    • Text

      Activate this option button if the file is a text file

    • Binary

      Activate this option if the file is a binary file.

    Keep Original File Attributes

    Select this option to keep the file attributes of the source file. The file attributes of the destination files are overwritten.

    This option only works if:

    • both the source and the destination platform comply
    • the new file transfer protocol is used (source and target agent are of Automation Engine version 9.00A or later).

    Otherwise, this option is ignored.

    In BS2000, OS/400 and z/OS, you cannot overwrite the original attributes with additional specifications in the File Transfer object (target). Any attempt to do so results in an error message and the file transfer fails.

    In z/OS, setting this option in conjunction with files located on tape/VTL is not supported. This option requires the dataset to be on a disk.

    Automic recommends activating this setting because the target file can become corrupt if the attributes are not sent or modified when you transfer text files between two OS/400 computers.

    Compression

    Select whether transferred files are compressed:

    • Default value: Applies the value in the agent/system variable
    • Yes: Files are compressed
    • No: Files are not compressed

    Yes and not overwrite the value defined in the agent/system variable

    If file exists at destination

    Select the action taken, if the file already exists at the destination. You can:

    • Cancel transfer

      If the file already exists in the target system, the transfer is canceled.

    • Overwrite file

      If the file already exists in the target system, the file is replaced by the one that is being transferred.

    • Append file

      If the file already exists in the target system, the file that is being transferred is appended to the existing one.

    Erase Source File

    Select this option if you do not want to keep the original file at the source system.

    Note that particular rights are required under UNIX if this file should be deleted. See Rights for Deleting Source Files in File Transfers.

    A file transfer also ends with the status ENDED_OK if all files have been successfully transferred but the source file could not be deleted for some reason.

    Use Wildcards

    Activate this option to be able to transfer files using wildcard character:

    • Abort at First Error: If an error occurs during the transfer, the file transfer stops.
    • Include Sub-Directories: The content of sub-directories is also transferred.
    • Transfer Complete Folder Structure: All contents are transferred.

     

Platform Specific Features

You can also specify file attributes for the file names of file transfer target:

Next steps:

Executing the Object

File Transfer objects can be included in Schedule Objects (JSCH) and thus be executed automatically at predefined times and/or intervals. Likewise, they can be part of workflows (see Workflow Overview).

Of course, you can also manually execute, restart or stop them. For details see Executing File Transfers.

Monitoring the Event

Immediately after executing the object you can start monitoring it. Right-click it to select Monitoring and open the pre-filtered list of tasks to display this one. See Monitoring.

Working with Task Events

In the Process Monitoring perspective you can then follow their progress and access the reports and statistical information associated to them. See Working with Tasks.

See also: