hi Gurus,
Need help in getting the desired output.
The source file can have multiple occurrences of a plan. Need to get distinct instance along with other columns.
Please refer to attachment.
INPUT
Code:
P1,L1,XX,1,S1,StandardP2,L2,XX,2,S2,StandardP3,L3,XX,3,S3,Volume DiscountP3,L3,XX,3,S3,Volume DiscountP3,L3,XX,3,S3,Volume DiscountP4,L4,XX,4,S4,Standard
OUTPUT
Code:
P1,usd,1,1,0,Standard,L1P2,usd,2,1,0,Standard,L2P3,usd,3,1,0,Volume Discount,L3P4,usd,4,1,0,Standard,L4