tFileOutputDelimited dynamic file name

One Star

tFileOutputDelimited dynamic file name

I'm at a bit of a loss on this one. I currently have a tFileList and tFileInputExcel running so that multiple excel files are checked and have data extracted from them. I then have that data output as a Delimited file. My question is how do i make the tFileOutputDelimited change the name of the file to whatever the input stream is. For instance say I'm running this on 3 excel files, Excel1, Excel2, and Excel3. How do i set the output so that it will create separate delimited files for Excel1, Excel2, and Excel3. I've attached a snapshot of my process so far (it works fine but puts it all in one file). Any help is much appreciated!
Thanks,
Ryan
Seventeen Stars

Re: tFileOutputDelimited dynamic file name

I guess you use as file name for tFileInputExcel: ((String) globalMap.get("tFileList_1_CURRENT_FILEPATH"))
I would use nearly the same for the tFileOutputDelimited: ((String) globalMap.get("tFileList_1_CURRENT_FILEPATH")) + ".txt"
One Star

Re: tFileOutputDelimited dynamic file name

ohh alright thanks a ton!

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch