cancel
Showing results for 
Search instead for 
Did you mean: 

AS2 to File Scenario - File Name management

0 Kudos

Dear all : I have a scenario, where a flatfile (txt) file is sent by an AS2 adapter, and is received by a file adapter. In this scenario we do not want to use a static file name, but instead we want to make it dynamic. The scenarios are explained below.

Scenario 1

We need to have the same file name, which is sent by the Sender, in the receiver also. Which means that, if the AS2 adapter sends the file <abcdefg.txt>, then while receiving, we need the same file name. How is it possible ? Pls note that we are not using message mapping here, as we do not bother about the content of the file.

Scenario 2

We need to get an offset of the filename which is coming in, as the receiver file name. For eg : if the file which is sent is <abcdefgh.txt>, then i need filename +4(3), which is <def.txt>, as the file name in the receiver.

Some considerations

-


1. There is no message mapping in our scenario.

2. The file coming in can contain anything without any format, so it is not possible to read the content and arrive at a decision

Many thanks & Regards

Bobby Bal

Accepted Solutions (0)

Answers (1)

Answers (1)

ONavas
Participant
0 Kudos

Hi Bob,

I have the same issue,

Have you solved it?

Former Member
0 Kudos

Hi Oscar,

You can achieve this by using Adapter specific Message Attributes.

In the Sender and Receiver File adapter go to Advance tab and under Adapter-Specific Message Attributes Tick the option of

1) Set Adapter-Specific Message Attributes

2) File Name

And in Receiver Channel for File Name Scheme, enter *

And If you want a part of a Source File name as your target file name. you can do it in UDF in Message mapping.

If you are not using Message mapping, you can run scripts to do this.

Regards

Aravind