This post was kindly contributed by Data Steps - go there to comment and to read the full post. |
What is the most efficient way to drop/keep columns (variables) in sas tables (data sets)?For the most part, we would correctly say “using a keep= option on the data set as it is being read into the current step.” A quick example to illustrate: data someData; set myData(keep= x y z); run; proc sort data = myData(keep= x y z) out= someData; by x y; run;In fact, I even wrote a whole paper
This post was kindly contributed by Data Steps - go there to comment and to read the full post. |