Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am trying to generate outputfile based on name of my Input File. My requirement is I have 5files in a directory and I have to read them. After my Data Processing jobs completition i have to generate a output file which name will be exact same with Input File read at the start of data processing. example:If i am reading FileName1.txt then at the end FileName1.txt should also generate. I am using tfilelist CURRENTFILE After variable in tfileoutputdelimited but no use. If anyone can help will be really helpful
@abhi90,can you design in below way and call file from ((String)globalMap.get("tFileList_1_CURRENT_FILE")) to outputfile name.
@abhi90,can you design in below way and call file from ((String)globalMap.get("tFileList_1_CURRENT_FILE")) to outputfile name.
tFileOutputDelimited is executed 1rst and create an empty file (as soon as Append option is not ticked).
So, when tFileInputDelimited starts, the file is empty.
To avoid this problem, you need an intermediate file.
Make sure you have a different output folder where you place your output file.
Kudos for everybody...
Thanks to everyone.i tried with all the solutions given and worked. accepted everyone's solution