Type: | Macro statement |
Restriction: | Allowed in macro definitions or open code |
See: | %STR and %NRSTR Functions |
%macro title(text,number); title&number "&text"; %mend; %let topic= The History of Genetics ; /* Leading and trailing */ /* blanks are removed */ %title(&topic,1) %let subject=topic; /* &subject resolves */ %let &subject=Genetics Today; /* before assignment */ %title(&topic,2) %let subject=The Future of Genetics; /* &subject resolves */ %let topic= &subject; /* before assignment */ %title(&topic,3)