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


Please Help Members By Posting Answers For Below Questions

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

1539


how are numeric and character missing values represented internally? : Sas programming

895


Explain the difference between using drop = data set option in set and data statement?

949


Explain what is SAS informats?

853


How many ways to overcome a missing values???

2577


How is character variable converted into numeric variable and vice versa?

902


How sas treats the dsd delimiters?

973


what versions of sas have you used (on which platforms)? : Sas programming

831


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

977


Mention some common errors that are usually committed in sas programming.

835


Explain the purpose of retain statement.

826


for what purpose would you use the retain statement? : Sas programming

839


What makes sas stand out to be the best over other data analytics tools?

821


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

759


why a stop statement is needed for the point= option on a set statement?

839