...
> You cannot both create and use a macro variable within
> 1 DATA step program. That means if you create
> &col_EXP_DT in a DATA step program, that a step
> boundary must be encountered before you USE
> &col_EXT_DT in a program.
>
> See this Tech Support note (and the Macro Facility
> documentation) for more details:
>
http://support.sas.com/kb/23/182.html
...
I guess the note is not 100% clear if even a long time user ends up drawing a wrong conclusion like that. You definitely *can* both create and use a macro variable within a data step.
[pre]
%symdel mvar;
data _null_;
call symput('mvar', 'what');
something = resolve('&mvar');
put something=;
run;
/* on log
something=what
*/
[/pre]
Message was edited by: chang_y_chung@hotmail.com