Code a PROC SORT on a data set containing State, District
and County as the primary variables, along with several
numeric variables.
Answer Posted / prakash
data info;
infile 'C:\country.txt';
input $state $district $country population total;
proc sort data=info;
by state district country;
proc print data= info ;
run;
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
what has been your most common programming mistake? : Sas programming
what is hash files in sas and why we are using this one in sas?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
What is the use of the %include statement?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
What are the data types does SAS contain?
AE datasets names? how many types?
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.
what is function of retain statment
what is the difference between floor and ceil functions in sas? : Sas-administrator
what are the benefits of data integration? : Sas-di
how do the in= variables improve the capability of a merge? : Sas programming
What are the 3 components in sas programming?
explain the key concept of sas? : Sas-administrator
In ARRAY processing, what does the DIM function do?