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 |
WHAT IS DEBUGGING? HOW TO TEST THE DEBUGGING IN SAS?
What is SAS?
Are you involved in writing the inferential analysis plan? Tables specfications?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT
what are input dataset and output dataset options?
tell me about use of arrays in sas
what is the difference between proc means and proc tabulate?
how do you derive descriptive statistics?
1 Answers Accenture, Quintiles,
What do you feel about hardcoding?
Under what circumstances would you code a SELECT construct instead of IF statements?
Do you need to know if there are any missing values?
what is snowflake schema? : Sas-di