Hello All,
I have a file with data as below. Each line consists of 21 fields. I am not able to load them back to the database.
50733339,"834","834 ","005010X279A1","N","Y","007977163","0001 ",30,"2110D ","EB ","EB007 ","2 ","Conditional Required Data Element Miss
ing
",,"REJ ",,"8 ","Segment has Data Element Errors
","2012-03-03-00.07.48.074377",
50732730,"834","834 ","005010X279A1","N","Y","007977108","0001 ",14,"2100C ","DTP ","DTP002","1 ","Required Data Element Missing
",,"REJ ",,"8 ","Segment has Data Element Errors
","2012-03-03-00.00.37.832866",
I need help to reform the lines in the files as below (remove all leading and trailing spaces and reform the 21 fields into a single line. I have marked the lines in different colors for clear understanding.
50733339,"834","834","005010X279A1","N","Y","007977163","0001",30,"2110D ","EB","EB007 ","2","Conditional Required Data Element Missing",,"REJ",,"8 ","Segment has Data Element Errors","2012-03-03-00.07.48.074377",
50732730,"834","834","005010X279A1","N","Y","007977108","0001",14,"2100C ","DTP","DTP002","1","Required Data Element Missing",,"REJ",,"8","Segment has Data Element Errors","2012-03-03-00.00.37.832866",
Any assistance to achieve the above would be very very helpful