Handling leading, trailing blanks in macro variable

This post was kindly contributed by SAS & Statistics - go there to comment and to read the full post.

If a macro variable contains leading or trailing blanks, they can be easily removed without the use of %LEFT or %TRIM. Simply:

%let macvar = &macvar;

This post was kindly contributed by SAS & Statistics - go there to comment and to read the full post.