Hi, I've got a sort of a challenge...
A DB2 query that returns a CHAR type (not VARCHAR) is being set to a String. When this string is printed it has spaces behind it, because when you insert into a char-column in DB2 it fills the rest with spaces. Now we want to trim these spaces out of the String, but the trim method doesn't seem to work.
Any alternatives or better solutions are _very_ welcome.
TIA
Tim Schraepen.
A DB2 query that returns a CHAR type (not VARCHAR) is being set to a String. When this string is printed it has spaces behind it, because when you insert into a char-column in DB2 it fills the rest with spaces. Now we want to trim these spaces out of the String, but the trim method doesn't seem to work.
Any alternatives or better solutions are _very_ welcome.
TIA
Tim Schraepen.