Hi all,
The APT_STRING_PADCHAR has been initially set to 0x00 and when data is loaded to DB2, DB2EE stage has padded weird boxes for each Char field.
We have changed the value to 0x20. But we need to correct existing data. Can any one of you suggest an option (may be SQL or DataStage) to trim these the charecters without reprocessing data.
Sripping Null Char in DB2
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
DataStage.
UNIX
Code: Select all
Convert(Char(0), " ", InLink.TheString)
Code: Select all
tr '\0' ' ' < infile > outfile
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.