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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic File name generation

 

 

Can anyone suggest an approach to build a job which will create a file with with the name same as the source file. As I am new to this tool I am not sure from where shall I start. 

any help is highly appreciated.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Just use a tfileList (the directory where your file is present) and in the fliemask you can give depending on your file name. Connect iterate link from tfileList to tfileInputDelimited (in directory, give variable ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

In your tfileoutputDelimited component you can give value for directory as your output directory + ((String)globalMap.get("tFileList_1_CURRENT_FILE")) -----this variable stores the current filename from tFileList component.

 

I hope this helps.

View solution in original post

5 Replies
manodwhb
Champion II
Champion II

Anonymous
Not applicable
Author

Hi Manohar, 

i appreciate your effort but i guess that one is for SSIS,solution in  talend is what i am looking for . 

Anonymous
Not applicable
Author

Just use a tfileList (the directory where your file is present) and in the fliemask you can give depending on your file name. Connect iterate link from tfileList to tfileInputDelimited (in directory, give variable ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

In your tfileoutputDelimited component you can give value for directory as your output directory + ((String)globalMap.get("tFileList_1_CURRENT_FILE")) -----this variable stores the current filename from tFileList component.

 

I hope this helps.

Anonymous
Not applicable
Author

Hey Ravinderk,

This worked, thanks a lot for your time.