Also, an ARRAY may work for your needs, along with VNAME/VNAMEX, if you want concise code paragraph and the ability to detect what variable (name) has a particular value-condition. The ARRAY can declare a list of SAS variables or possibly _NUMERIC_ ...or... _CHARACTER_ to mean all SAS variables of a given type.
Yes, and it's time to crack open the DOC, with focus on the SAS Language Elements guide and the functions. Check the SAS support
http://support.sas.com/ website and use its SEARCH facility in addition to the SAS forum archives and SAS system documentation.
Scott Barry
SBBWorks, Inc.