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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Retrieve files with TFileList given a context variable

0683p000009M8xT.png

Hi, I have the above job, the component ListSourceFolder is a tfilelist, the filemask of this component retrieves files from a folder this folder contains this files: File1.txt, File2.txt, File3.txt and File4.txt.

 

I have a context variable "cVariable".

When I run the job, if cVariable contains the value 'y' then the ListSourceFolder retrieves the following files : File1.txt, File2.txt, File3.txt.

If cVariable contains the values 'n' the the ListSourceFolder  retrieves  File4.txt, File2.txt, File3.txt.

 

How can I do this without having to duplicate all the section "Transfer file from source folder to Input folder" that you see in the above image?  I'm using and older version of talend: 3.1

 

 

 

 

Labels (2)
1 Reply
fdenis
Master
Master

if file list for Y is known then you just have to use tmap who lookup on file name list for y .

the best yaw may be to use tIterate to flow to build filst of file then add flag to the list then call subjob for each file using context to give file path to subjob.

Regards,