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 |
Have you ever used the SAS Debugger?
what is intially documentation in sas?
What are the default statistics for means procedure?
In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Can you execute macro within another macro? : sas-macro
Explain what is SAS informats?
How does the internal authentication work in sas? : sas-grid-administration
What is the purpose of trailing @ and @@? How do you use them?
what is sas olap server? : Sas-di
How many ways to overcome a missing values???
what is snowflake schema? : Sas-di