2007 Dec 18 9:17 AM
Hello,
how cann i delete a speacial character from a dataset.
f.e. delete 'a' from 'AaAaBbBb' returns 'AABbBb'.
Best regards,
TomSd
2007 Dec 18 9:52 AM
use REPLACE ALL OCCURENCES OF 'a' WITH ''.
This will do,,
Reward if it helps
Hello,
how cann i delete a speacial character from a dataset.
f.e. delete 'a' from 'AaAaBbBb' returns 'AABbBb'.
Best regards,
TomSd
2007 Dec 18 9:19 AM
Hi Thomas,
tp_output = 'AaAaBbBb'.
REPLACE 'a' WITH space INTO tp_output.
Your output will look like 'A A BbBb'.
Then you finally condense it to remove spaces.
CONDENSE tp_output.
And it will look like your desired result 'AABbBb'
Hope it helps you
Thanks
William Wilstroth
Edited by: william wilstroth on Dec 18, 2007 5:20 PM
2007 Dec 18 9:24 AM
Hi,
Check the code below:
v_string = 'AaAaBbBb' .
if v_string ca 'a'
replace 'a' with ' ' into v_string.
condense v_string with no-gaps.
endif.
regards
Kannaiah
2007 Dec 18 9:24 AM
hi,.
data:out(10).
out = 'AaAaBbBb'.
REPLACE ALL OCCURRENCES OF 'a' IN out WITH ' '.
write out.
Pls Reward with points......
Rgrds,
Kumaresh
2007 Dec 18 9:26 AM
hi,.
data:out(10).
out = 'AaAaBbBb'.
REPLACE ALL OCCURRENCES OF 'a' IN out WITH ' '.
write out.
Pls Reward with points......
Rgrds,
Kumaresh
2007 Dec 18 9:26 AM
wk_var = ''AaAaBbBb'
replace all occurrences of 'a' in wk_var with space.
condense wk_var.
2007 Dec 18 9:52 AM
use REPLACE ALL OCCURENCES OF 'a' WITH ''.
This will do,,
Reward if it helps
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |