Tagged with " Reference"

Fun with Macro Reference

Sep 12, 2010 by     1 Comment     Posted under: SAS Library

Think about this simple question:

%let a=NLL; %* 6;
%let b=a; %* 5;
%let c=b; %* 4;
%let d=c; %* 3;
%let e=d; %* 2;
%let f=e; %* 1;
%put &f, &&f, &&&f, &&&&f, &&&&&f, &&&&&&f, &&&&&&&f, &&&&&&&&f;
%* You will get "e, e, d, e, d, d, c, e" ;

So how many ampersands do you need in front of “f” in the macro PUT statement so you can get “NLL” in your log? Read more »

Check out the BioNews, a very handy daily recap of the latest industry news!