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: 
_AnonymousUser
Specialist III
Specialist III

how to give dynamic file path input to tFileInputPositional

Hello,
I am trying to take data from text file and store them into database. right now fortFileInputPositional filename/stream
i have set a static path. i want to know that whether is it possible to set dynamic path ? so i can run my job on multiple file in one execution?
thanks.
Labels (2)
2 Replies
Anonymous
Not applicable

Hi,
It is possible to set dynamic path.
For your scenario, you can use tContextLoad or explicit tContext to load your multiple filename and give a Context value in filename/stream of tFileInputPositional.
Please take a look at my screenshots and online component reference TalendHelpCenter:tContextLoad
Best regards
Sabrina
Anonymous
Not applicable

Hi Dipens,
I Assume this is what you are looking for - https://help.talend.com/search/all?query=tFileList&content-lang=en
Use tFileList-->tFileInputPositional--> DatabaseOutput
- in tFileInputPositional - use tFileListCurrentFilePath for Filename
- use appropriate filter if any...
After executing the job, you would iterate on each file based on standard metadata and see the output of each file.
Thanks
Vaibhav