Version 5.3P Rev2
Hello All,
I’m trying to change all special characters in an XLTP proc to space and the & to the word and. I can get all the characters changed except the ampersand.
below is my code can anyone comment on what I’m going wrong. When I echo the input I only get what is to the right of the ampersand. If there is no ampersand in the field I get the full field value.
There are no syntax errors and I get the correct output if there isn’t an ampersand.
regsub -all — & [lindex $xlateInVals 0] “and” noampers;
echo $noampers
set char $noampers
regsub -all — {,|.|-|(|)|/} $char { } char1;
set xlateOutVals
}