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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Parikhharshal
Creator III
Creator III

Process files having yesterday timestamp in filename

Hi there

 

I have a scenario like this:

 

From Google cloud bucket I am downloading all the files from particular bucket to local folder and get all different files like this:

0683p000009MaI9.png

 

I want to get activities_05272020_*.gz and books_05272020_*.gz file and process them. Like this, every day new file will be arriving and I will have to process previous day file.

 

What's the best way to resolve this?

 

Thanks

Harshal.

Labels (2)
2 Replies
Anonymous
Not applicable

Hi
Using a tFileList to iterate the files under the specified folder, set the filemask as:
"*_"+TalendDate.formatDate("MMddyyyy", TalendDate.addDate(TalendDate.getCurrentDate(), -1, "dd"))+"_*.gz"

Regards
Shong
Parikhharshal
Creator III
Creator III
Author

That's awesome. 

 

I will try @shong .

 

How can I unzip .gz files and put it into different table eg in this case one file goes into activity and another one goes into book table?