![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
You use inbound file name masks to control which files FTP-GET retrieves from an FTP server. The FTP-GET mask option is available in the FTP Edit Settings dialog, which is accessible in the Transports tab for a protocol binding.See TIBCO BusinessConnect Trading Partner Administration Guide for more information.If the trading partner’s name is receiver, and the host’s name is sender, to generate an inbound file named receiver.sender.12202004-TIBCO.edi on December 20, 2004, enter the following mask in the File Mask field:
• MyFile.dat. This example specifies the exact name of the file to be retrieved.
• TIBCO_#(YYYYMMDD).dat. This example uses a standard pre-defined variable for retrieving the file.
• #(var1)_#(var2).dat. This example uses user-defined variables for retrieving the file.
• *. This example uses the asterisk wildcard character (*) to retrieve files. This retrieves all files.
• #(var1)_#(var2)*.dat. If var1 is defined as TIBCO and var2 is defined as B2B-X12, this would retrieve all files with names beginning with TIBCO_B2B-X12 and ending with .dat.When wildcard characters are used in the mask, files are retrieved using mget. Not all FTP servers implement mget. Be sure to verify that your trading partner FTP server supports mget before defining file name masks which use the asterisk wildcard character (*).
Any value between # and first closing parenthesis ')' will be checked for a replacement and, if not found, will be made an empty string.Table 2 lists the mask syntax supported for FTP-GET.
Masking is applied only to file names. It does not apply to any directory name in the FTP URL. Example: If the FTP URL is /local/tibco/bc/#(TPNAME)/REQUEST/, and /local/tibco/bc/SELLER-AXNT15/REQUEST/ exists, FTP fails.
Table 2 FTP-GET File Name Mask Syntax Case Sensitivity
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |