Hi frnds,
I have small query...
I hav sorcu data like this..
a$a%d
b^f*g
g@j&*h
pls can any one tell me how to handle this special char's.
handling special characters
Moderators: chulett, rschirm, roy
Re: handling special characters
You can use Oconv function with "MCA" or "MCP" options to get Alpha-Numeric or Printable characters.venni wrote:Hi frnds,
I have small query...
I hav sorcu data like this..
a$a%d
b^f*g
g@j&*h
pls can any one tell me how to handle this special char's.
hi
Hi ,
As of my knowledge u can use string function 2 remove special characters in Query
Select substr(columnname,2,len(columnname) from tablename;
try this it will help you to remove special characters in query
if u want to remove in DS use convert function
thanks
fareeda
As of my knowledge u can use string function 2 remove special characters in Query
Select substr(columnname,2,len(columnname) from tablename;
try this it will help you to remove special characters in query
if u want to remove in DS use convert function
thanks
fareeda
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Which of the characters is "special"?
Oconv() and Iconv() are not available in parallel jobs. Convert() is.
The way I would go about this is to set up a stage variable which is initialized to contain a list of all the special characters. In an output column derivation I would use something like
Oconv() and Iconv() are not available in parallel jobs. Convert() is.
The way I would go about this is to set up a stage variable which is initialized to contain a list of all the special characters. In an output column derivation I would use something like
Code: Select all
Convert(svSpecialChars, "", InLink.SourceField)
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.