If you have a data set that contains 100 variables, but you
need only five of those, what is the code to force SAS to
use only those variable?
Answer Posted / kishore kumar
If ur reading data from any dataset we will use keep option
like set data1(keep = 5 variables);,If ur using in any
procedure just with var statement.If u want to display to
have output with only 5variables out of 100 just use keep
option with data statement.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
how are numeric and character missing values represented internally? : Sas programming
Explain the difference between using drop = data set option in set and data statement?
Explain what is SAS informats?
How many ways to overcome a missing values???
How is character variable converted into numeric variable and vice versa?
How sas treats the dsd delimiters?
what versions of sas have you used (on which platforms)? : Sas programming
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
Mention some common errors that are usually committed in sas programming.
Explain the purpose of retain statement.
for what purpose would you use the retain statement? : Sas programming
What makes sas stand out to be the best over other data analytics tools?
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
why a stop statement is needed for the point= option on a set statement?