I need to remove the padded spaces from one of the field.
File layout
two-char x(2)
three-char (3)
name x(35)
indicator 9(1)
indicator 9(1)
Input file
HEADER
IN,IND,INDIA ,1,0
GB,GBP,GREAT BRITAIN POUND ,1,O
TRAILOR
IN,IND,INDIA ,1,0
GB,GBP,GREAT BRITAIN POUND ,1,O
TRAILOR
(Remove all the extra spaces in the name field)
Output file:
HEADER
IN,IND,INDIA,1,0
GB,GBP,GREAT BRITIAN POUND,1,0
TRAILOR
IN,IND,INDIA,1,0
GB,GBP,GREAT BRITIAN POUND,1,0
TRAILOR
I was thinking with Program but if can be done using DFSORT then it will be great.
Please let me know of any thoughts.