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 is business intelligence? : Sas-bi
what is sas database server? : Sas-di
Briefly explain input and put function?
What is the command used to find missing values?
In SAS explain which statement does not perform automatic conversions in comparisons?
explain the main difference between the nodup and nodupkey options? : Sas-administrator
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
Are you involved in writing the inferential analysis plan? Tables specfications?
Name some categories in sas 9? : sas-grid-administration
What is data _null_?
Explain by-group processing?
How is character variable converted into numeric variable and vice versa?
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
What are the implications?
Differences between where and if statement?