How to Replace the "bad" data with the '*" c
Moderators: chulett, rschirm, roy
You can always use the CONVERT statement, which is rather cool. It takes a string of characters and changes the each value to a correlated value in another string.
Example:
This would change all occurrences of "A" to a "1", "B" to a "2", and "C" to a "3".
So,
produces
You can do something like write a custom function:
Example:
Code: Select all
CONVERT "ABC" TO "123" IN yourstring
So,
Code: Select all
CONVERT "ABC" TO "123" IN "CxBxA"
Code: Select all
3x2x1
Code: Select all
changestr=CHAR(a):CHAR(b):CHAR(c):CHAR(d)
**where a,b,c and d are ASCII chart numbers for your bad chars
Ans=Arg1
CONVERT changestr TO STR("*",len(changestr)) in Ans
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 49
- Joined: Sat Mar 26, 2005 12:19 am
No change in output data
Hi ArndW,
No change in output. I have checked with other function which you have suggested in previous posts that is
Convert(svControlSet0, svSpaces, inlink.Columnname)
Still we have received same data in output.
Thanks®ards
venu
No change in output. I have checked with other function which you have suggested in previous posts that is
Convert(svControlSet0, svSpaces, inlink.Columnname)
Still we have received same data in output.
Thanks®ards
venu
-
- Participant
- Posts: 49
- Joined: Sat Mar 26, 2005 12:19 am
No change in output data
Hi ArndW,
No change in output. I have checked with other function which you have suggested in previous posts that is
Convert(svControlSet0, svSpaces, inlink.Columnname)
Still we have received same data in output.
Thanks®ards
venu
No change in output. I have checked with other function which you have suggested in previous posts that is
Convert(svControlSet0, svSpaces, inlink.Columnname)
Still we have received same data in output.
Thanks®ards
venu