Reading Fixed width file
Posted: Tue Jun 21, 2011 12:49 am
I am not able to read fixed width file from sequential file stage
for Example
My Source file is
14.22 decimal(2,2)
7.4(decimal1,1)
abc(char 3)
Error Message:record_length=fixed" (no length given) and record field format is variable-length
i have tried to read source as all char type and converting decimal in first two filelds but when i am reading first column 14.22 (char 5) and my target is decimal(2,2). when i run the job warning is truncation in field.
please suggest how to read .
Thanks in advance
for Example
My Source file is
14.22 decimal(2,2)
7.4(decimal1,1)
abc(char 3)
Error Message:record_length=fixed" (no length given) and record field format is variable-length
i have tried to read source as all char type and converting decimal in first two filelds but when i am reading first column 14.22 (char 5) and my target is decimal(2,2). when i run the job warning is truncation in field.
please suggest how to read .
Thanks in advance