Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
DavidETL
Contributor III
Contributor III

Move/Copy Files using a wildcard filemask list.

Hi All

 

I'm trying to create a job which moves files from one folder to another when the matching 3 letter codes exist in the filename.

 

  1. Using a list of values in a CSV file in column A e.g
    1. TLC
    2. BET
    3. TLY
    4. CDR
    5. PLC
  2. The job moves files containing these 3 letter codes from One Folder to another.

I can get a job working by manually typing in the codes tFlileList's mask function, although i need it to be dynamic as the list of codes is very large and will update over time.

 

Current Setup is

1.tFileList from directory

2. Iterate to tCopyFile

3. tDeleteFile then cleans up the existing files one copy is finished.

 

Any ideas?

 

Cheers

 

dv

Labels (2)
1 Solution

Accepted Solutions
DavidETL
Contributor III
Contributor III
Author

Hi All,

 

I managed to work it out. I created a tMap with output(out1), then passed it via a tFlowToIterate. From there I set iterate to the tFileList and set the mask to "*"+out1.Code+"*"

 

Have attached pictures.

0683p000009M5I7.png

0683p000009M5IC.png

 

 


Capture.PNG
code.PNG

View solution in original post

1 Reply
DavidETL
Contributor III
Contributor III
Author

Hi All,

 

I managed to work it out. I created a tMap with output(out1), then passed it via a tFlowToIterate. From there I set iterate to the tFileList and set the mask to "*"+out1.Code+"*"

 

Have attached pictures.

0683p000009M5I7.png

0683p000009M5IC.png

 

 


Capture.PNG
code.PNG