Delimiter format for Fixed width

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
lak4u
Participant
Posts: 43
Joined: Mon Nov 03, 2008 10:00 pm

Delimiter format for Fixed width

Post by lak4u »

My source file is delimited file and I need to poupulate fixed width file
but when I created the file, the empty field has #####. I tried to trim and tried to remove ###, still I couldn't, please help.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

A "fixed width file" means each record is exactly the same number of characters long and each field is always the same size, even when "empty". Use "char" fields and make sure you populate them appropriately - as in all spaces for the ones with no data.
-craig

"You can never have too many knives" -- Logan Nine Fingers
lak4u
Participant
Posts: 43
Joined: Mon Nov 03, 2008 10:00 pm

Post by lak4u »

chulett wrote:A "fixed width file" means each record is exactly the same number of characters long and each field is always the same size, even when "empty". Use "char" fields and make sure you populate them appropriately - as in all spaces for the ones with no data.
Thanks for reply.

Actually I found the solution. In the sequential file format tab there is Default padding "#". I removed this and its working fine.

Thanks you
Post Reply