Hello,
data _NULL_;
call execute('data want; set test;');
do until(lastrow);
set sashelp.vcolumn(where=(LIBNAME='WORK' and MEMNAME='TEST' and upcase(NAME)=:'VAR_')) end=lastrow;
call execute(cats('miss_',scan(NAME,2,'_'),'=missing(',NAME,');'));
end;
call execute('run;');
stop;
run;
EDIT: added the necessary 'stop' instruction at the end of the data step.
... View more