Need to have Input File name as Output
Posted: Tue Dec 16, 2008 1:32 am
A job is reading multiple files using File Pattern.
Let my input files are A1.txt,A2.txt,A3.txt,A4.txt,A5.txt.
Input file pattern is A*.txt.
I want to have exact file name corresponding to each record read from that source file.
Output should be
COL1aa,COL2aa,A2.txt (comment:COL1aa,COL2aa read from A2.txt)
COL1bb,COL2bb,A4.txt (comment:COL1bb,COL2bb read from A4.txt)
Please help
Let my input files are A1.txt,A2.txt,A3.txt,A4.txt,A5.txt.
Input file pattern is A*.txt.
I want to have exact file name corresponding to each record read from that source file.
Output should be
COL1aa,COL2aa,A2.txt (comment:COL1aa,COL2aa read from A2.txt)
COL1bb,COL2bb,A4.txt (comment:COL1bb,COL2bb read from A4.txt)
Please help