Fix file names

<< Click to Display Table of Contents >>

Navigation:  Reference > Partner management > OFTP/OFTP2 >

Fix file names

Ref_AdrMan_008

 

Some partners require that all files, especially EDI messages, are sent using the same file name, which they require for further processing of the messages. For this requirement !MC5 allows to define rules for Fixed file names. You can define file patterns so that files matching those will be sent using a fixed virtual file name. The local file name wont be changed.

 

The following functions are available:

 

Ref_AdrMan_013 New - Add a new rule

Ref_AdrMan_015 Edit - Edit the selected rule

Ref_AdrMan_016 Delete - Delete the selected rule

 

 

Add new rule / Edit rule

Ref_AdrMan_009

 

In the most simple case, when all files should be sent using the same name, only one rule is required. Use the Pattern *, which matches any file, and enter the Fix file name into the respective field.

 

If files should get different fixed names, the files have to be distinguishable by their local file name, in a way that the respective files can be matched by a certain file pattern. Taht pattern can then be used to create a new rule for a fixed file name. If a file doesn't match any rule, it is sent using the local file name.

 

In addition to a fixed file name an alternative SFID can be specified, which will be used when files matching the file pattern are sent. Contrary to the general settings, here the leading character of the Odette ID (i.e. an O) has to be entered also.

 

The fixed name can contain certain special characters:

# will get replaced by a consecutive number. The number of # characters defines the width of the counter. Each partner gets its own counter.

The character $ will also be replaced by a consecutive number, in the same way the # character does. The difference being that $ will use one global counter for all partners.

The character * will be replaced by the original file name. If the resulting file name is longer than 26 characters it will get truncated to a length of 26 characters.

The placeholder %DATE:<format>% gets replaced by the current date (and/or time) depending on the given format. E.g. on January, 1st 2019 at 12pm %DATE:hhmmssMMDDYYYY% gets replaced by 12000001012019 and %DATE:MMDDYYY% would get replaced only by the date.