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 interleaving in SAS?
What is SAS?
What is maximum number of rows and cols can be handled in SAS?
Describe a time when you were really stuck on a problem and how you solved it?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What is the use of PROC gplot?
Name types of category in which SAS Informats are placed?
What are the differences between sum function and using “+” operator?
What is the basic structure of a sas program?
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
What are pdv and it functions?
how to change the execute of macro
What versions of SAS have you used (on which platforms)?
Are you involved in writing the inferential analysis plan? Tables specfications?
What do you understand by the term Normal Distribution?