Data Loaded in target table with Some Spaces

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
praburaj
Premium Member
Premium Member
Posts: 133
Joined: Thu Jun 30, 2005 1:26 am
Location: philippines

Data Loaded in target table with Some Spaces

Post by praburaj »

Hi,

My source is DB2. When I load the data into the Char field (6) in to target table, the data is getting loaded with spaces. I have tried with trim option also. But it does not work.
EX:

This is my job flow

DB2---->Transformer-->DB2;

Source Target

RMTYPE_ C RMTYPE_C

MUL MUL 
SEQ SEQ

Please help me to resolve this issue.
prabakaran.v
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use VarChar instead of Char as the data type. Of course, if the data type in the actual table is Char then the column has to be padded with something.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply