cancel
Showing results for 
Search instead for 
Did you mean: 

Add Timestamp to filename

Former Member
0 Kudos

Hi

I have two different requirements for two files

1. I need to add the current date and time to the name of the file

2. I need to add first field data of the file to the filename

how can I acheive it

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

1. Use the option in file channel "Add Time Stamp" under "File Construction Mode".

2. Use dynamic configuration. You may search SDN for related blogs.

Regards,

Prateek

Former Member
0 Kudos

Hi

I got the timestamp in my filename,

I need to add first field data of the file to the filename also

Answers (2)

Answers (2)

Former Member
0 Kudos

There is a great blogfrom michal solving this issue.

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

BR,

Martin

Former Member
0 Kudos

Hi,

you can use a user definded function in a mapping to set the filename which should be used as adapterspecific message attribute.

Additionally you need to enable the adapter specific message attributes in the communication channel by setting the flag.

BR,

MArtin