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


Please Help Members By Posting Answers For Below Questions

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

699


What is slibref?

746


What is program data vector (pdv) and what are its functions?

631


What is the basic syntax of a sas program?

671


where are dashboard components are created and maintained? : Sas-bi

569






please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1667


If you could design your ideal job, what would it look like?

2377


What are the features of SAS?

578


do you prefer proc report or proc tabulate? Why? : Sas programming

575


how would you determine the number of missing or nonmissing values in computations? : Sas programming

658


Explain data step in SAS

632


What does proc print, and proc contents are used for?

611


I have a dataset concat having variable a b & c. How to rename a b to e & f?

581


what can you learn from the sas log when debugging? : Sas programming

611


Which command is used to perform sorting in sas program?

599