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
To what type of programms have you used scratch macros?
What is the sas data set? : sas-grid-administration
what are some differences between proc summary and proc means? : Sas programming
Explain proc sort?
Mention the difference between ceil and floor functions in sas?
Describe the function and untility of the most difficult SAS macro that you have written.
What is the difference between reading data from an external file and reading data from an existing data set?
Can you suggest us materials for sdtm mapping?
how do you want missing values handled? : Sas programming
what is hierarchy flattening? : Sas-di
Mention what is the difference between nodupkey and nodup options?
how many types prompting framework can be broken down to? : Sas-bi
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.
How can you limit the variables written to output dataset in data step?
How do you use the do loop if you don’t know how many times you should execute the do loop?