‎2006 Apr 24 9:09 AM
i have number 44444/33
i want to replace '/'
and have
4444433
how?
‎2006 Apr 24 9:12 AM
var1 = '4444/33'.
REPLACE '/' with SPACE in var1.
Condense var1 no-gaps.
Regards,
Ravi
‎2006 Apr 24 9:11 AM
Use TRANSLATE to convert '/' with ' ' into a variable and then condense the variable.
Hope this helps
Cheers
VJ
‎2006 Apr 24 9:12 AM
var1 = '4444/33'.
REPLACE '/' with SPACE in var1.
Condense var1 no-gaps.
Regards,
Ravi
‎2006 Apr 24 9:16 AM
Hi
data: STR1(4),
STR2(4) VALUE '/',
STR3(2) VALUE ''.
if your no is there in a field VAR (i mean lets say VAR = 44444/33)
STR1 = VAR
then
replace STR2 with STR3 into STR1.
Condense STR1 no-gaps
write: STR1.
Thanks
Sudheer
‎2006 Apr 24 9:19 AM
REPORT YCHATEST .
data : str(8) value '44444/33'.
concatenate str+0(5) str+6(2) into str.
write : str.