Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script load for flat files that have a datestamp in the file name

I'm recieving files from a vendor that I store on my QV server. The vendor is sending a daily file whose filename is trailed by a date stamp.

For example the four files below are files that we've recieved on October 2nd, 3rd, 4th, and 5th...



account_export_20091002.txt
account_export_20091003.txt
account_export_20091004.txt
account_export_20091005.txt

My question is...

Can I structure my script to do a loop on the file name, concatenating each file to the all previous files.

for example

Load AccountID, Name FROM \\AcountData\account_export_20091002.txt

concanate

Load AccountID, Name FROM \\AcountData\account_export_20091003.txt

concanate

and so on, and so on

1 Solution

Accepted Solutions
GabrielAraya
Employee
Employee

Hi, Can you try:

Load
AccountID,
Name
From \\....\account_Export_*.txt;

Gabriel

View solution in original post

2 Replies
GabrielAraya
Employee
Employee

Hi, Can you try:

Load
AccountID,
Name
From \\....\account_Export_*.txt;

Gabriel

Not applicable
Author

Thanks!!! It worked like a charm