Conversion from Char to Varchar

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
pandujoy
Participant
Posts: 70
Joined: Tue May 13, 2008 1:37 pm

Conversion from Char to Varchar

Post by pandujoy »

Hi,

I have a char field coming from input and i am doing a lookup from DB which have a datatype of char. When i am deploying this as a serivce i am getting output as "&#0;&#0;&#0" which are special characters.

is there a way to eliminate these ? If we use varchar we wont get it but we cant do a lookup against char to varchar.....please help me out :(
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check the setting of APT_STRING_PADCHAR environment variable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pandujoy
Participant
Posts: 70
Joined: Tue May 13, 2008 1:37 pm

Post by pandujoy »

it is set to 0x0 ...not sure what it must be..plz help me out
pandujoy
Participant
Posts: 70
Joined: Tue May 13, 2008 1:37 pm

Post by pandujoy »

its a Char (4) data type
pandujoy
Participant
Posts: 70
Joined: Tue May 13, 2008 1:37 pm

Post by pandujoy »

Thanks a lot for your help...I could solve it out...I made APT_STRING_PADCHAR....as 0x20 and used the trim function - Trim(<Col name>,Char(0),'A')
Post Reply