this question occurred to me when reading the following, quoted from "Problem Note 40031: Single quotation marks have been added to internal macros in SAS® Enterprise Guide®" at http://support.sas.com/kb/40/031.html
" ....... for example, &_clientapp resolves to 'SAS Enterprise Guide', but, in earlier versions, the same macro variable resolves to SAS Enterprise Guide.
To remove the quotation marks, use %SYSFUNC, for example:
This solution is provided as an example, but would you like to comment on the more general application of [pre] %sysfunc(compress(&_some_macro_var_,%str(%')))[/pre] compared with this alternative[pre] %sysfunc(dequote(&_some_macro_var_))[/pre] ??
A subtle difference occurs if the first character of the value that is operated on by DEQUOTE is not a quote then the function does not remove any quotes. Admittedly you have to work pretty hard to make that happen.
The advantage of DEQUOTE is that is properly handles imbedded quotes and works equally well for single and double quotes. Plus with DEQUOTE you don't have to remember how to used unmatched quotes [pre]%STR(%')[/pre]
I'm not familiary with the "EG 12" but I expected either method would return the correct DEQUOTED value.
The %PUT statement displays text in different colors to generate messages that look like ERROR, NOTE, and WARNING messages generated by SAS. To display text in different colors, the first word in the %PUT statement must be ERROR, NOTE, or WARNING, followed immediately by a colon or a hyphen. You may also use the national-language equivalents of these words. When you use a hyphen, the ERROR, NOTE, or WARNING word is blanked out.