How to convert special character in Datastage Transformer

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use the correct UniChar() function to describe the characters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Md Dawar Mughni
Participant
Posts: 10
Joined: Wed Sep 30, 2009 11:55 pm
Location: Pune,India
Contact:

Post by Md Dawar Mughni »

ray.wurlod wrote:Use the correct UniChar() function to describe the characters. ...
UniChar() function does not work in Transformer, Could you please let me know how exactly do I need to use UniChar() exactly for this particular example.

appreciate your kind support
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What do you mean by "doesn't work"?

Do you have NLS installed and enabled?

If not, you will struggle to process accented characters, etc.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Md Dawar Mughni
Participant
Posts: 10
Joined: Wed Sep 30, 2009 11:55 pm
Location: Pune,India
Contact:

Post by Md Dawar Mughni »

Oh Ok.

The NLS is not been installed. and its not possible to install it now.

Now the work around would be DS Routines or unix script.

Is there any other way of doing it without NLS istalled, please suggest.
Bicchu
Participant
Posts: 26
Joined: Sun Oct 03, 2010 10:49 pm
Location: India

Post by Bicchu »

Can anybody please tell me what is NLS?
And how to check whether it is installed or not in a system?
Thanks,
Pratik.
samyamkrishna
Premium Member
Premium Member
Posts: 258
Joined: Tue Jul 04, 2006 10:35 pm
Location: Toronto

Post by samyamkrishna »

You can use the tr command in a wrapper stage. for the column.

But for this you need to know the ASCII valuer of the special character.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Bicchu wrote:Can anybody please tell me what is NLS?
And how to check whether it is installed or not in a system?
You can check the NLSMODE setting in the uvconfig file. If NLSMODE is 0 then NLS has not been installed. As to what it is, Google is your friend.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

NLS is "National Language Support" - a misnomer because it's about character sets and locales, not about languages. NLS provides the means to map external character sets (for example SHIFT-JIS for Japanese) into the Unicode used within DataStage.

Actually, if NLSMODE is 0, then NLS has been installed but not enabled.

If NLS has not been installed, NLSMODE does not even appear in uvconfig.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

D'oh! For some reason when I transcribed a post I found on the subject, I ended up typing 'installed' when it said 'activated'. :(
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply