How do you read in the variables that you need?
Answer Posted / chiranjeevi
using variable control options.
keep:It decides the no. of variable should remain within the
dataset.
syntax:keep<variablelist>;
example:
data code;
input name$ no sal;
keep name sal;
datalines;
a 32 3000
b 56 7000
c 12 7890
run;
proc print data=code;
run;
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Describe the function and untility of the most difficult SAS macro that you have written.
Name any two sas spawners? : sas-grid-administration
Explain what is the use of proc gplot?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What is the difference between where and if statement?
What will calendar procedure do?
What is the difference between SAS functions and procedures?
Are you involved in writing the inferential analysis plan? Tables specfications?
How do dates work in sas?
What is the maximum and minimum length of macro variable
Did you used proc test? when?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
What do you know about symput and symget?
What are the limitations for memory allocation for SAS variables
Why double trailing @@ is used in input statement?