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


Please Help Members By Posting Answers For Below Questions

What is slibref?

747


What is the use of %include statement?

623


why a stop statement is needed for the point= option on a set statement?

631


what is sas olap server? : Sas-di

690


Do you know the features of sas?

598






Describe the function and untility of the most difficult SAS macro that you have written.

1566


what is the use of sas management console? : Sas-di

615


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?

707


what is the use of proc sql? : Sas programming

600


How does proc sql work?

618


Explain data_null_?

611


In sas admin differentiate between roles and capabilities? : sas-grid-administration

561


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

686


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

549


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

589