proc sql;
select distinct name into :names separated by ' ' from dictionary.columns where upcase(memname)='HAVE' and upcase(libname)='WORK' and upcase(name)?'JAN';
quit;
data want; set have (drop=&names); /* OR set have (keep=&names); */ run;
-- Paige Miller
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.