DB2 Enterprise Stage
Posted: Thu Oct 21, 2004 1:59 pm
We did load a table in DB2 using a DB2 Enterprise Stage fetching data from a Sybase source. There were a couple of columns with the char datatype.
When the data gets loaded and I try to retrieve the data from the table I see all the char columns have been padded with spaces. And I'm not able to do a rtrim on this. Even after a rtrim it still gives the actual length of the column and not the length of the value in that column.
I also tried this(DB2 Enterprise) with a varchar type and I see the same behaviour.
Where as I can perform an rtrim on a manually entered row and it works fine.
The same works fine when an DB2 API stage is used.
Has anybody come across this before. And is there a specific way in which DB2 Enterprise stage behaves that I'm missing on.
Thanks,
dsuser
When the data gets loaded and I try to retrieve the data from the table I see all the char columns have been padded with spaces. And I'm not able to do a rtrim on this. Even after a rtrim it still gives the actual length of the column and not the length of the value in that column.
I also tried this(DB2 Enterprise) with a varchar type and I see the same behaviour.
Where as I can perform an rtrim on a manually entered row and it works fine.
The same works fine when an DB2 API stage is used.
Has anybody come across this before. And is there a specific way in which DB2 Enterprise stage behaves that I'm missing on.
Thanks,
dsuser