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 the Population you used in your project, is it ITT or PP?
Describe the ways in which you can create a macro variable?
Are you sensitive to code walk-throughs peer review or QC review?
Which statement does not perform automatic conversions in comparisons?
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
name some data transformation used in sas di? : Sas-di
To what type of programms have you used scratch macros?
How many ways to overcome a missing values???
what is intially documentation in sas?
Describe crosslist option in tables statement?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How many data types are there in SAS?
What is program data vector (pdv) and what are its functions?
What is the use of function Proc summary?
name several ways to achieve efficiency in your program? : Sas programming