Create a template dataset which is what you want to be present, then set that with the data you get, best of both worlds:
proc sql;
create table TEMPLATE (var1 char(200),var2 num,var3 char(50));
quit;
data data_in;
var1="Abc";
var3="Def";
run;
data want;
set template data_in;
run;
... View more