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
what is sas and what are the functions? : Sas-administrator
If a variable contains letters or special characters, can it be numeric data type?
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
describe the interaction table in sas di? : Sas-di
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
what is the use of sas management console? : Sas-di
what is factor analysis? : Sas-administrator
what are the best practices to process the large data sets in sas programming? : Sas-administrator
How will you generate test data with no input data?
What are the features of base sas system?
How do you specify the number of iterations and specific condition within a single do loop?
what is transformation in sas data integration? : Sas-di
In sas, what are the areas that you are most interested in? : sas-grid-administration
How does proc sql work?