Convert VarChar to Char

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
kanasai167
Participant
Posts: 63
Joined: Mon Sep 12, 2011 2:11 am

Convert VarChar to Char

Post by kanasai167 »

Im trying to convert Varchar to Char , same length.
I just change the data type at the target db2 connector.
After the job run , when view the data , those value length less than its field length , the spaces is filled with '?'.

For example ,
My source value in db2 , length = 10
'123 '
'qwe '

Output value in db2 , length = 10
'123???????'
'qwe???????'

Any way to solve this issue?
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

search for PADCHAR in this forum..
Kandy
_________________
Try and Try again…You will succeed atlast!!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Actually, APT_STRING_PADCHAR does not apply to server jobs. This forum is for server jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kanasai167
Participant
Posts: 63
Joined: Mon Sep 12, 2011 2:11 am

Post by kanasai167 »

ops , just notice that i post at the wrong section

i change the APT_STRING_PADCHAR to '0x20' and the weird character gone.

Thanks.
Post Reply