cancel
Showing results for 
Search instead for 
Did you mean: 

Changing file name schema

Former Member
0 Kudos

In my receiver adapter the file name schema is intern_pay%var1%.dat and in variable substitution var1 is defined as message:message_id_hex.According to this i can see the file in the target directory as intern_payb0ba03a0904711dbbb9e00000e252c96.dat

Can any one please help me out to change the format of the file in the target directory to intern_pay_yyyymmdd.dat

Briefly, can any one please explain me how to change the file name schema in the receiver adapter.

Many Thanks,

Smith.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Paul,

You can use DynamicConfiguration in a user defined function to achieve this.

Go thro these threads, they will provide you the solution.

In the above thread look at the post that answered the question. It will certainly help you.

And go thro this also.

Regards,

P.Venkat

Former Member
0 Kudos

Hi,

File adpater provides you a facility for writing a file with data and time stamp. But the format is sligtly different then<i> _yyyymmdd</i>.

If you need the format to be exactyly the same then you need to put this in some variable in the mapping using User defined function and then do variable substitution.

Regards

vijaya