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

how does sas handle missing values in procs? : Sas programming

871


What is the good sas programming practices for processing large data sets?

869


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

747


What is the difference between match merge and one to one merge?

917


what are sas bi dashboard components? : Sas-bi

864


Can you explain the process of calendar?

856


How would you identify a macro variable? : sas-macro

760


what versions of sas have you used (on which platforms)? : Sas programming

803


what is function of retain statment

1781


what is the function of catx syntax? : Sas-administrator

851


What is maximum storage capability of SAS?

1090


how does sas handle missing values in a merge? : Sas programming

770


How does proc sql work?

825


Describe the ways in which you can create macro variables?

840


Explain data step in SAS

844