/* Patterns for Searching Patterns consist of three classes of characters: underscore (_) matches any single character. percent sign (%) matches any sequence of zero or more characters. any other character matches that character. These patterns can appear before, after, or on both sides of characters that you want to match. The LIKE condition is case-sensitive data _null_; set bls.usstatesavg: ; by year; if first.year then put _all_; run; ===========================End commented out================================ */ %libname (sf12000x); proc sql noprint; select 'sf12000x.'||memname into :names separated by " " from dictionary.tables where libname eq "SF12000X" and lowcase(memname) like '%i' ; quit; %put names=&names; data states; set &names open=defer; keep state sumlev; run; proc freq data=states; table state sumlev; run;