Answer Posted / dupe
Data set option :
Data new(keep=age race gender);
set old;
run;
Data set statemnet:
Data new;
set old;
drop age race and gender;
run;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how does sas handle missing values in a merge? : Sas programming
How to test the debugging in sas?
where are dashboard components are created and maintained? : Sas-bi
What is the difference between proportion and average?
how to read the variables in sas? : Sas-administrator
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
What are the features of base sas system?
Mention how to limit decimal places for the variable using proc means?
Describe the function and untility of the most difficult SAS macro that you have written.
Enlist the functions performed by sas.
What is your favorite all time computer book? Why?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
What is the sas data set? : sas-grid-administration
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.
Differentiate between ceil and floor functions.