*Copyright @ www.mycsg.in;


Macro quoting in SAS - %STR, %NRSTR, and %QUOTE

Why macro quoting is needed

%STR - quote a text string at compile time

Use %STR to pass a comma-separated list as a single parameter

%NRSTR - quote text including ampersands and percent signs

%QUOTE - quote a value at macro execution time

%QUOTE with a parameter containing special characters

Summary - when to use each quoting function

Key points to remember