04-17-2017 10:35 AM
You might need to modify this to deal with any specific requirements.
data _null_; word = 'Mumbai'; word_pad = strip(prxchange('s/(\w)/\1 /i', -1, word)); put _all_; run;
04-17-2017 11:10 AM
If you actually insert space characters you need to make sure that the length of the variable will hold all of the inserted spaces. To modify an existing data set variable that would involve a LENGTH statement before the SET statement to overwrite the characteristic of the variable brought in with the SET statement.
Is this for a specific word or list of words or every value of a variable?