Page 1 of 1

trim on char in db2 stage querry getting messed up

Posted: Thu Jan 15, 2009 8:28 am
by zulfi123786
Hi,

I have a column of type Char(3) in a db2 table, its having only one alphabet and rest spaces, i am triming the field in the db2 select querry and putting it in a field defined as char(3). i can see that there are no spaces appended to it by selecting view data option. The problem is that all the records are failing in the join stage. padchar is set to 0x20.
why is it not padding the spaces in db2 stage?

Posted: Thu Jan 15, 2009 1:21 pm
by ray.wurlod
View Data can be misleading. Use some other tool to confirm, something that will display space characers in some way.