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 / ganesh
We can either use keep or drop option for selecting those
five variables.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
What is the difference between one to one merge and match merge? Give an example.
How do you test for missing values?
What are the different servers in sas? : sas-grid-administration
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
Explain the difference between informat and format with an example.
how the sas basic syntax style described? : Sas-administrator
What is run-group processing?
What does the trace option do?
what do the pad and dim functions do? : Sas programming
What are the default statistics for means procedure?
explain what is factor analysis? : Sas-administrator
Why double trailing @@ is used in input statement?
explain about sas business intelligence? : 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.