Another way to deal with lists of variable names is to read them from the dictionary tables or from sashelp.vcolumn. The "type" column contains "char" or "num". You could also identify dates from the format. This method is more orthogonal in that you can use the same tools as for any dataset, unlike options and statements.