Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Adding Date to File Name

Hi,
I am using tPigStore_Result component for Storing Pig Result.But In that i need the file to be saved based on date.
For E.g. i need to store result on location "hdfs://XXX.XX.XXX.XX:8020/user/user/Talend/Output/Result_10102010" (Where 10102013 is current date). if i run the same program on 11102013 then the output should be stored @ "hdfs://XXX.XX.XXX.XX:8020/user/user/Talend/Output/Result_11102010".
Regards,
Bhagwant Bhobe
Labels (2)
1 Reply
Anonymous
Not applicable
Author

You have to build the file name for your self using the build-in Talend routine
"hdfs://XXX.XX.XXX.XX:8020/user/user/Talend/Output/Result_" + TalendDate.formatDate("ddMMyyyy", TalendDate.getCurrentDate())