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 makes sas stand out to be the best over other data analytics tools?
Describe the ways in which you can create a macro variable?
what is sas and what are the functions? : Sas-administrator
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
How to sort in descending order?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
What are the five ways to do a table lookup in sas? : sas-grid-administration
What is a put statement?
What is a macro routine?
Difference between SAS STATA & SPSS?
what are the categories that sas informats are used to the place the data? : Sas-administrator
what is sas application server? : Sas-di
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What does the trace option do?
What is the length assigned to the target variable by the scan function?