The DROP Data Set Option
The DROP data set option is very similar to the KEEP data set option.
Instead of keeping the variables in the data set, the DROP option drops the variables from the data set.
Set SASHelp.class (drop=name age sex);
The DROP data set option drops the NAME, AGE and SEX variables from the input SASHelp.class data set.
Only the HEIGHT and WEIGHT variables are left in the output:
✍️ Exam TipsThe KEEP and DROP options can be used within a single data step.
? Sample Exam Question(s):Question 2
Question 2: The answer is (a).
There are five variables kept in the input SASDATA.cities: - orig - dest - city - price - equipment
The variables city, dest, equipment are dropped from the LABDATA.DALLAS data set.
Only the orig and price variables are output to both data sets.
Username or Email Address
Registration confirmation will be emailed to you.