I have a flat file which has unspecified number of columns.
If I have 3 Columns, the next time it maybe 5 Columns.
But the File format should read the data regardless of change in the no. of columns.
For Ex:
DAY 1
EMP COL1 TYPE COL2 TYPE
DAY 2
EMP COL1 TYPE
We also need to pivot the data and populate each column in to a row with the header.
SOURCE
EMP ADDR1 TYPE ADDR2 TYPE
12345 Name1 PDM City1 PDM
23456 Name2 PDM City2 PDM
The catch here is the based on the number of columns we get in the source file, we have to pivot the appropriate columns as well.
It should be dynamic(Pivoting).
The same way the file handling should also be dynamic.
This is what I need exactly.
Day1 the file looks like this and the same file will have extra columns on day2.
The need the two scenarios to be handled in the same dataflow.
The way I need to pivot should be dynamic too.
Thanks
Kishore.
Day1:
SOURCE
EMP ADDR1 TYPE ADDR2 TYPE
12345 Name1 PDM City1 PDM
23456 Name2 PDM City2 PDM