If you have a data set that contains 100 variables, but you
need only five of those, what is the code to force SAS to
use only those variable?

Answer Posted / mohan reddy

U CAN USE THE KEEP OPTION.

EX

DATA EMP(KEEP=NAME AGE SAL ADD LOC);
SET EMPLOYEE;
RUN;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

700


What is the general format of function in sas? : sas-grid-administration

652


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

809


what does the run statement do? : Sas programming

651


What is Linear Regression?

775






where to use sas business intelligence? : Sas-bi

678


What is the difference between order and group variable in proc report?

970


What is the difference between where and if statement?

718


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1914


Explain input and put function?

751


Describe crosslist option in tables statement?

825


What is the difference between input and infile statement?

774


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

681


Are you involved in writing the inferential analysis plan? Tables specifications?

3558


What is proc sort?

809