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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
saivsr
Contributor
Contributor

How to archive xml files based on year and month wise archive

Hi All,

Need best approach to below requirement on talend.

i have source files directory with huge no. of xml files and files coming frequency is overall 2k to 3k files per day.

i have to archive those files in another folder based on month& year wise files like 'YYYY-MM'.

so please suggest best approach for this requirement.

 

Thanks,

Labels (2)
1 Reply
tnewbie
Creator II
Creator II

Hello Saivsr,

I guess you are trying to push some xml files from a source directory to a target directory and in the process you want to push files to a respective folder (labeled by year and month) if that is right, then lets assume that you have your destination directories created like 2019NOV, 2019DEC,2020 Jan etc in the path "h:/filesources/products/"

1) Create a context variable SOURCE_FILE_DIRECTORY = "h:/filesources/products/"

2) configure your archivefile component as per the attachment (assuming you have tFileList component)


dynamic_folders.png