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 |
How would you invoke a macro? : sas-macro
How to Rename Library?
for report generation which one you used proc report or data_null_?
3 Answers Accenture, Quintiles,
Can anyone help me about SAS Realtime scenarios in Clinical field
what is lifetest
what are all the default values getting in PROC MEANS...???
Give e an example of..
How would you create multiple observations from a single observation?
what is the difference btw proc means and proc univariate?
I am looking to buy a sas advance book. So any one can guide me that which one i should buy.
what does .. meant in sas macros
In ARRAY processing, what does the DIM function do?