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
what can you learn from the sas log when debugging? : Sas programming
What is the general format of function in sas? : sas-grid-administration
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 does the run statement do? : Sas programming
What is Linear Regression?
where to use sas business intelligence? : Sas-bi
What is the difference between order and group variable in proc report?
What is the difference between where and if statement?
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.
Explain input and put function?
Describe crosslist option in tables statement?
What is the difference between input and infile statement?
what versions of sas have you used (on which platforms)? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specifications?
What is proc sort?