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 slibref?
What is the use of %include statement?
why a stop statement is needed for the point= option on a set statement?
what is sas olap server? : Sas-di
Do you know the features of sas?
Describe the function and untility of the most difficult SAS macro that you have written.
what is the use of sas management console? : Sas-di
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
what is the use of proc sql? : Sas programming
How does proc sql work?
Explain data_null_?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
how does sas handle missing values in formats? : Sas programming