Page 1 of 1

Spaces in the File

Posted: Wed Sep 23, 2009 2:30 pm
by dodda
Hello

I have a scenario where my input File is delimited by ; and i need to produce a fixed width file.
I am using seqfilestage---colimport stage---transformer-seqfile
My input File looks like below with each field delimited by ;
abc;def;ghi,jkl

now iam parsing the four Feilds via Column import stage as 4 fields
The format i have mentioned in the format tab of the column import stage is
Final Delimiter=end
Field Delimiter=;
In the Column Import stage the SQL type i mentioned as Varchar

After parsing via Col Import stage and trimming each and every field in the transformer i still get one extra space at the end of every field.
Is it common if so how to delete those spaces.

thanks

Posted: Wed Sep 23, 2009 2:34 pm
by dodda
The output i am getting in the target seq file is
abc def ghi jkl

Posted: Wed Sep 23, 2009 2:45 pm
by chulett
Fixed-width files don't have field delimiters, what happens if you remove that property all together?

Posted: Wed Sep 23, 2009 3:12 pm
by dodda
Hi Chulett,
My source File is ; delimited File.

Posted: Wed Sep 23, 2009 4:06 pm
by chulett
Not talking about your source, but I see I misread your post anyway. You say you need to produce a "fixed width file" so we need to know what properties you have set in the target sequential file stage.

Posted: Wed Sep 23, 2009 8:24 pm
by dodda
hi chulett,

I have mentioned the Final delimiter=end. I havent used any field defaults.

Posted: Tue Sep 29, 2009 8:36 am
by HariK
Could you post the metadata of the target sequential file.

Posted: Tue Sep 29, 2009 4:24 pm
by ray.wurlod
Set the Field Width property for each of these fields.