[resolved] How to append current date into filename in FileOutput component?

One Star

[resolved] How to append current date into filename in FileOutput component?

I want to use the system routine getDate("CCYYMMDD") to return the date string.
What is the syntax to get get this system routine call into the file name string in the tFileOutput component File Name field?
For instance:
"//File1/Output_File_???getDate("CCYYMMDD")???.xml"
What do I replace the ???s with?

Accepted Solutions

Re: [resolved] How to append current date into filename in FileOutput component?

Hello holberger,
In the output file component you can write the file path as
"//File1/Output_File_" + TalendDate.getDate("CCYYMMDD") + ".xml"
Vikram TAkkar
http://vikramtakkar.blogspot.in

All Replies

Re: [resolved] How to append current date into filename in FileOutput component?

Hello holberger,
In the output file component you can write the file path as
"//File1/Output_File_" + TalendDate.getDate("CCYYMMDD") + ".xml"
Vikram TAkkar
http://vikramtakkar.blogspot.in
One Star

Re: [resolved] How to append current date into filename in FileOutput component?

That was easy. Thanks!