In your control file, when defining the fields you can also put a peice of SQL on the field and you do it something like this

field POSITION(1:9) CHAR(8) "rtrim(:field)"