You could use _character_ and just exclude the new variable from the check. e.g.:
data class;
set sashelp.class;
if _n_ in (2,8) then do;
call missing(age);
call missing(sex);
call missing(weight);
end;
run;
data want;
set class;
length deriver_var $50;
array cvars(*) _character_;
array nvars(*) _numeric_;
do _n_=1 to dim(cvars);
if vname(cvars(_n_)) ne 'deriver_var' and missing(cvars(_n_)) then do;
deriver_var=catx(' ',deriver_var,vname(cvars(_n_)));
end;
end;
do _n_=1 to dim(nvars);
if missing(nvars(_n_)) then do;
deriver_var=catx(' ',deriver_var,vname(nvars(_n_)));
end;
end;
run;
Art, CEO, AnalystFinder.com
... View more