Hi,
We get a txt file (fixed positions) from one vendor. We need to add header, footer and update each data row with ID and send this updated txt file to another vendor.
Hearder - is dynamic. Has certain pattern with static data and dynamic data. Dynamic data is I have to include total number of data records that file has.
Data rows - Beginning of each row, I need to add ID (1, 2, 3 ) etc padded with zeros. The position to add ID is from 1-5th position. so if ID is 1 then it should be 00001. If ID is 10, then ID should be 00010. Rest of the data in data row is same.
Footer: Data rows have quantity as part of data. I need to keep track of it, add it and create a footer with total quantity.
How can I do it in SSIS package.
Thank You