How do you read in the variables that you need?
Answer Posted / neeraja
using keep(for selected variables).keep is a dataset
option.the statment keep is used to specify the number of
variables to be remained within a sas dataset or output.
syntax:keep <var list>
data emp;
keep name no;
input name$ no sal job$;
cards;
......
....
Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What is slibref?
What is program data vector (pdv) and what are its functions?
What is the basic syntax of a sas program?
where are dashboard components are created and maintained? : Sas-bi
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
If you could design your ideal job, what would it look like?
What are the features of SAS?
do you prefer proc report or proc tabulate? Why? : Sas programming
how would you determine the number of missing or nonmissing values in computations? : Sas programming
Explain data step in SAS
What does proc print, and proc contents are used for?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
what can you learn from the sas log when debugging? : Sas programming
Which command is used to perform sorting in sas program?