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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Execute job based on file name

I am looking to automate some processes based on a files name. I have several jobs set up to execute on files within the same files. If I have a file names foo*.xls, I would like to run job fooManipulate. If the filename is bar*.xls, I am looking to run job barManipulate and so on and so forth. Is there a way to automate the process so that it iterates through each file in the folder and runs the correct job?

Labels (2)
1 Solution

Accepted Solutions
fdenis
Master
Master

on TAC Talend Administrtor Center you can add file triggers with mask to run your Job.

on Standalone add new job with tFileList with mask linked by iterationLink to the coresonding tRunJob. do not forget to set subjob context using globaMal("tFileList_x_CURRENTFILE").
good luck.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Not exactly sure of your flow but have you tried tRunJob?

Jesperrekuh
Specialist
Specialist

 

The tRunJob has an option: dynamic job , you can use a context/global variable which you set runtime while using the tFileList to check for files.

 

 

Anonymous
Not applicable
Author

You can always create a dynamic instance with context or globalMap

fdenis
Master
Master

are you running on TAC or on a standalone jobs?
fdenis
Master
Master

on TAC Talend Administrtor Center you can add file triggers with mask to run your Job.

on Standalone add new job with tFileList with mask linked by iterationLink to the coresonding tRunJob. do not forget to set subjob context using globaMal("tFileList_x_CURRENTFILE").
good luck.