Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am a beginner to Talend Open Studio.
I am processing a delimited text file in tFileInputDelimited and mapping it to 3 different tFileOutputDelimited using tMap and appending all tFileOutputDelimited to the same output file. But I need to insert a very long string as a row in the output file just below the rows coming from 1st tFileOutputDelimited and just above the rows coming from 2nd tFileOutputDelimited.
Please suggest solution for this.
Thanks in advance!!
You should not link it to your input. You should do it indepent of your input. It may be more complex needing additional components etc. It depends on your exact logic. Maybe you should have a few tMaps and do it in multiple steps. Or use tUniqRow etc.
Just like you are appending the 3 output to 1 file, you will ouput the 1 string to the file. You will simply have 1 column in your tFileOutputDelimited definition and you will not output the header. This long string message will go into your file in between the 2 different outputs. The long string can be an output from the tMap. Hence, you will have 5 outputs instead of 3. Make sure you keep same line delimiter though.
You should not link it to your input. You should do it indepent of your input. It may be more complex needing additional components etc. It depends on your exact logic. Maybe you should have a few tMaps and do it in multiple steps. Or use tUniqRow etc.