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 / soniya
in data set - use keep
in proc step- use var ,id statements
ex-
data a;
infile urfilename;
input score1-score100;
keep sore1-score5;
run;
input a;
input score1-scor100
run;
proc print data=a;
var score1-score5;
id score1-score5;
run;
observe id-in this statement nuber of obs not displed in
out put
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are all the reports you generated in your recent project?
What is the difference between %put and symbolgen? : sas-macro
What is the use of stop statement?
What areas of SAS are you most interested in?
What are the differences between sum function and using “+” operator?
What is interleaving in SAS?
Describe the ways in which you can create a macro variable?
what is business intelligence? : Sas-bi
What is the difference between nodupkey and nodup options?
what has been your most common programming mistake? : Sas programming
what is treatment emergent events and treatment emregent adverse event
How does the internal authentication work in sas? : sas-grid-administration
What are the applications primarily used by business analyst? : Sas-bi
I have a dataset concat having variable a b & c. How to rename a b to e & f?
Mention what is PROC in SAS?