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

Explain input and put function?

876


What is by-group processing?

754


how does sas handle missing values in sort order? : Sas programming

729


What can be the size of largest dataset in SAS?

954


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

867


How long can a macro variable be? A token? : sas-macro

948


Explain what is SAS informats?

832


what is information maps?

1825


How would you identify a macro variable? : sas-macro

769


Difference between informat and format?

858


In sas, what are the areas that you are most interested in? : sas-grid-administration

842


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1936


how do you debug and test your sas programs? : Sas programming

848


what is business intelligence? : Sas-bi

807


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

785