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 the function of Stop statement in a SAS Program?
Are you involved in writing the inferential analysis plan? Tables specfications?
What are the features of base sas system?
Can you execute a macro within a macro? Describe. : sas-macro
What system options would you use to help debug a macro? : sas-macro
What are the scrubbing procedures in sas?
Mention few capabilities of sas framework.
What commands are used in the case of including or excluding any specific variables in the data set?
Tell me more about the parameters in macro? : sas-macro
What do you know about sas and what we do? : sas-grid-administration
how to read the variables in sas? : Sas-administrator
What are SAS/ACCESS and SAS/CONNECT?
Have you ever used the SAS Debugger?
How many ways to overcome a missing values???
How will you generate test data with no input data?