hi all,
I want to find out the special characters in my Column in Datastage.i have written query in DB2 it's working fine but i want to know how it is going to be done in the Datastage
Scenario: suppose my input "dfg;uiko=ikey" i want to trim all the special characters and i want to have out put as "dfguikoikey" at one step, i have done the same with multiple steps by using "Ereplace" and "Filed" Functions
sprecial character in the input column
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 106
- Joined: Thu Jul 27, 2006 10:05 pm
- Location: Mumbai
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Are you sure this is a parallel job? There is no Ereplace() function available in parallel Transformer stage.
If it's a server job or a BASIC Transformer stage you can use the LETTERS Transform (which is defined as Oconv(Arg1,"MCA")) - this preserves only alphabetic characters. However, if you have alphabetic and numeric characters as non-special, you need a slightly different approach. Search the forum for "alphanumeric" - this discussion has been had fairly recently.
If you know what the special characters are you can use the Convert() function to remove them. For example
If it's a server job or a BASIC Transformer stage you can use the LETTERS Transform (which is defined as Oconv(Arg1,"MCA")) - this preserves only alphabetic characters. However, if you have alphabetic and numeric characters as non-special, you need a slightly different approach. Search the forum for "alphanumeric" - this discussion has been had fairly recently.
If you know what the special characters are you can use the Convert() function to remove them. For example
Code: Select all
Convert(";=", "", InLink.TheString)
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.