cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter - ASMA

Former Member
0 Kudos
841

Hi,

Scenario:

FTP - XI - FTP

File is retrieved using FTP and does not have extension. Example "abc"

File is to be stored by appending ".txt" to the filename.

So filename on receiver FTP channel should be abc.txt

Source file name is dynamic.

How do I add an extension (.txt) to a dynamic source filename ?

I was thinking abt Variable substitution like %fname%.txt but filename is not passed in the payload, so how do I replace fname ?

Any other ideas ?

Thanks

Bhaven

View Entire Topic
Former Member
0 Kudos

Hi Shah,

Using ASMA select Filename option in sender comm. channel.

Using ASMA select Filename option in receiver comm. channel.

In mapping write the user defined funciton for getting the filename only, not the extension and map it to a segment or field.

Then in filen name give FileName.txt. You should have your desired output.

Regards,

---Satish