Explore using DICTIONARY.COLUMNS with PROC SQL to analyze any SAS data library and/or member that has been declared with the LIBNAME statement.
If using PROC SQL or DATA/PROC step, you can select/filter using the IN operator in your WHERE statement/clause. Or you can string out the data-values as constants using IF OR OR THEN DO;
Scott Barry
SBBWorks, Inc.
Recommended Google advanced search arguments, this topic/post:
dictionary columns site:sas.com
where in operator site:sas.com