Hi All,
If I have a colunm where its values is char(number+string) how can i filter only char
suppose my value is "11A234"
"2E4567"
I want to get the output as A and E only
Is there any logic other than the Datastage inbuit functions to handle this
Thanks in advance
Saik.
filter strings from number
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can write your own, but it will never be as fast as the inbuilt functions.
Are you perhaps planning to come back and bill for tuning the system after an inefficient initial design?
Code: Select all
FUNCTION StripNonAlphas(TheString)
Ans = ""
CharCount = Len(TheString)
For ch = 1 To CharCount
Character = TheString[ch,1]
If Alpha(Character) Then Ans := Character
Next ch
RETURN(Ans)Are you perhaps planning to come back and bill for tuning the system after an inefficient initial design?
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.
</a>