cancel
Showing results for 
Search instead for 
Did you mean: 

File Name

Former Member
0 Kudos

Hi All,

If I need to give a file name to the file which is not in the Message Payload , can I use Variable Substitution or Dynamic Configuration?If so can you please explain how?

If not then what is the alternative way to achieve this?

Thanks and regards,

Amol

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

answered

former_member200962
Active Contributor
0 Kudos

You have to use Dynamic Configuration.

If you want to just pass the SourceFileName to the TargetFileName (i.e. both the names shoule be same), then just check the FileName ASMA in the sender as well as receiver channel, no need of a UDF in this case

Regards,

Abhishek.

Shabarish_Nair
Active Contributor
0 Kudos

i would always recommend dynamic configuration. you can run thru my blog - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

former_member204873
Contributor
0 Kudos

Also you can try this blog:

/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot

prateek
Active Contributor
0 Kudos

Use Dynamic Configuration. You can then provide any name of your choice. Variable Substitution won't be applicable in this case.

Regards,

Prateek

former_member208856
Active Contributor
0 Kudos

check this blog :

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14