Handling Special Characters

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
just4u_sharath
Premium Member
Premium Member
Posts: 236
Joined: Sun Apr 01, 2007 7:41 am
Location: Michigan

Handling Special Characters

Post by just4u_sharath »

How can i trim the special characters if i get them in my data. To my understanding trim can only wipe away spaces. Do we have any functions to trim the special characters in Parallel extender. Please let me know.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Handling Special Characters

Post by chulett »

just4u_sharath wrote:To my understanding trim can only wipe away spaces.
Not true.

Define 'special'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
just4u_sharath
Premium Member
Premium Member
Posts: 236
Joined: Sun Apr 01, 2007 7:41 am
Location: Michigan

Re: Handling Special Characters

Post by just4u_sharath »

chulett wrote:
just4u_sharath wrote:To my understanding trim can only wipe away spaces.
Not true.

Define 'special'.
i looked for this in transformer (Define special). but i didnt find it. Please let me know where can i use this and its implementation
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? What? No, I want you to define for us what specifically you mean by 'special' characters.
-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 »

It is sometimes necessary, with NLS enabled, to handle characters that are not ordinarily trimmable, such as the Japanese space character. You can write a routine but it is much easier to add the code point for this character to the TRIMMABLE class in the CTYPE category of the NLS locale.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
manishk
Participant
Posts: 32
Joined: Tue Oct 25, 2005 8:45 pm

Post by manishk »

you can use convert function ..convert the special charater to spaces and tri off. Inorder to convert use the ascii table
Thanks
Manish
Post Reply