In SAS, outside of a data step, what is the best way to replace a character in a macro variable with a blank?
It seems that TRANSLATE
would be a good function to use. However when using %SYSFUNC
with this function, the parameters are not surrounded with quotes. How do you indicate a blank should be used as replacement?
There are no quotes in macro language. The only quotes characters that are in use are the &
, %
etc. to indicate that the text should be interpreted as a macro "operator". A blank is represented by %str( )
as indicated above in Carolina's post.