Partially Qualified File Transfer
As opposed to fully qualified file transfers, partially qualified file transfers can also transfer several files by using wildcard characters. This document describes how you can define source and target file filters depending on the particular versions of the source and target agents.
A file transfer is partially qualified if one or several wildcard characters are used in order to specify the source and target file. The Use wildcards option must also be activated.
The file transfer protocol is decisive for the way wildcard characters are used.
Old File Transfer Protocol
The old file transfer protocol is used if the source and/or target agent are of an Automation Engine version below 9.00A.
Source
To define the source file, you can use the wildcard characters * and/or ?. At least one wildcard character must be used.
"*" stands for any number of characters (including no character), "?" for exactly one. Fixed file name parts and wildcard characters form a filter which is used to retrieve the files that should be transferred.
Wildcard characters are always read from left to right. If the fixed part occurs several times in between wildcards in the source file, the filter applies as of the position at which the fixed part first occurs.
New File Transfer Protocol
The source and target agent must be of Automation Engine version 9.00A or later.
Source
See old file transfer protocol.
Target
To define the target file you can use the * character as often as you like. It represents the source file's complete variable part, starting with its first wildcard character (? or *) and ending with its last wildcard character (? or *).
Note that for each * character the system will insert all applying characters in the target file name from the first to the last source file's wildcard character. The built target file name can become very long.
Nine placeholders are additionally available that can be used to specify the target file. They refer to a particular wildcard character (?,*) in the source file name. These placeholders are composed of the & character and the numbers 1-9: &1, &2, &3,... &9.
The number specifies the wildcard location in the source that is addressed.
For example: Placeholder &3 is replaced by the source file name's characters that are retrieved by the third wildcard character in the source file specification.
Starting the file transfer results in an error if the source file's filter includes fewer wildcards than are addressed in the target specification. Each placeholder can be used in the target file as often as required.
The wildcard characters * and &1, &2 ... &9 have different functions and can be used in parallel.
The wildcard character "?" must not be used in target file names.
Automic recommends using at least as many wildcards in the source and the target as are required in order to clearly identify the file name. Otherwise, the file transfer will try to create several target files of the same name in the same location. In this case, the action that is defined in the file transfer setting "File exists" is executed (cancel, overwrite, append).
See also: