there are many variables in the dataset, is there a way to list all variables in a dataset horizontally?
proc contents SHORT
Love this! It will work great for copying vars into a keep, drop, or retain statement.
Conversely, you could automate that process a bit with the method described in the following paper: http://support.sas.com/resources/papers/proceedings10/046-2010.pdf