cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution

Former Member
0 Kudos

Hi

I have some doubts regarding this

1) Can we use source file name in Variable Substitution ? And when we use source file name, then do we have to check ASMA always ?

2) If the file name is in the source then will it always appear in the target payload ? When we use file name from the payload, then do we have to check ASMA ?

3) When we use Variable Substitution , do we always have to set the " Disable Security Checks " indicator ?

Radhika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1) Can we use source file name in Variable Substitution ? And when we use source file name, then do we have to check ASMA always ?

The varibale substitution is applied on the target payload.

If u want to use the source file name in variable substitution,then,

a.Check ASMA in source CC.

b.Get the file name in a UDF.

c.Put it in some target element.

d.use this element in variable substitution.

Yes u need to check ASMA in sender.

2) If the file name is in the source then will it always appear in the target payload ? When we use file name from the payload, then do we have to check ASMA ?

No, it depends upon mapping u r using. If u map the field containing the source payload directly to target,then yes u will get if not no.

No. If u r using filename from payload(variable substitution), No ASMA is required.

3) When we use Variable Substitution , do we always have to set the " Disable Security Checks " indicator ?

No.

Note: If u want the source file name and target filename same, then, just simply tick the ASMA in both sender and receiver.

If still any doubt, do post,

Babu

Edited by: hlbabu123 on Mar 24, 2010 12:12 PM

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

could you have a look into this blog? Do you really want to use variable substitution? Why not opt for dynamic configuration?

Former Member
0 Kudos

Shabarish,

Your blog is wonderful though I had few doubts when I read that

Advantage of variable substituion is that you don't need to write UDF. I say this as I come from a non Java background

Radhika

Former Member
0 Kudos

Hi,

You can use Dynamic Configuration to get the source file name and while doing variable substitution u can use that filename for the receiver also.

U have to tick ASMA in this case...

For further clarification u can post....