05-25-2006 12:04 PM
Hi ,
for the code :
data : string(4) type c.
string = 'ASDF'.
NOW I WANT TO REPLACE D IN STRING WITH SPACE ie ' '.
but when i use
Replace d in string with ' '.
then the output is 'ASF' ..NO SPACE IS BEING INSERTED.
CAN NYONE HELP ME HOW TO REPLACE D WITH SPACE....
05-25-2006 12:32 PM
Try this:
Replace d in string with ` `.
<b>NOte that the quotes are not ' but `(The key above the tab key in the keyboard.</b>
REgards,
Ravi
05-25-2006 12:07 PM
Hi
Split str at 'd' into str1 str2.
concatenate str1 str2 into str seperated by space.
05-25-2006 12:07 PM
split string at 'D' into str1 str2.
concatenate str1 str2 separated by space.
05-25-2006 12:07 PM
05-25-2006 12:10 PM
Use <b>Translate</b> Statement or do this way
Data : v_string type string,
STR1,STR2,STR3 TYPE STRING.
v_string = 'ASDF'.
SPLIT V_STRING AT 'D' INTO STR1 STR2.
CONCATENATE STR1 STR2 INTO STR3 SEPARATED BY SPACE.
WRITE STR3.
05-25-2006 12:10 PM
05-25-2006 12:12 PM
hi rajesh,
replace 'D' in string with space.
Award if it helps.
regards,
keerthi.
05-25-2006 12:17 PM
Hi Rajesh
REPLACE <str1> WITH <str2> INTO <c> [LENGTH <l>].
Replace D with ' ' into str1.
Regards
Laxmi
05-25-2006 12:22 PM
HI RAJESH,
data: p type string value 'asdf'.
<b>Replace 'd' with ' ' into p.</b>
write:/ p.
hope this helps,
priya
05-25-2006 12:30 PM
05-25-2006 12:32 PM
Try this:
Replace d in string with ` `.
<b>NOte that the quotes are not ' but `(The key above the tab key in the keyboard.</b>
REgards,
Ravi
05-25-2006 1:01 PM
05-25-2006 1:09 PM
hi rajesh,
did u check my reply that also works.
try checking that.
thanks,
priya.