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?
Answers were Sorted based on User's Feedback
Answer / sindhura
new_data_set ( will have the five variables with variable
names var1, var2, var3, var4, var5)
data new_data_set;
set old_data_set( keep = var1 var2 var3 var4 var5);
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mohan reddy
U CAN USE THE KEEP OPTION.
EX
DATA EMP(KEEP=NAME AGE SAL ADD LOC);
SET EMPLOYEE;
RUN;
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / sandeep reddy
I think we have to use OBS=5
and mention FIRSTOBS=(THE FIRST OBSERVATION FROM WHERE U
WANT)
| Is This Answer Correct ? | 1 Yes | 19 No |
Intern stastical programmer written test
List out some key concept of SAS
What are the statements that are executed only?
Hi All.I am looking for Good Institute who could Provide the online SAS BI+DI Training along with software.Primarily in Delhi/NCR or in Hyderabad Please help with name and contact number of concerned person!! Thanks in Advance! :)
How to Rename Library?
Mention few capabilities of sas framework.
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What are the advantages of using sas?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
What is the difference between Regression and Logistic Regression? Can u explain the Assumptions/Conditions?
Define run-group processing?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro