Hello,
with call execute in a data step :
%let table=sashelp.class;
%let column=age;
data _NULL_;
input age;
call execute(cats('data out_',&column.,'; set &table.; where &column.=',&column.,'; if _N_ le 3; run;'));
cards;
12
13
14
15
16
;
run;
... View more