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


Please Help Members By Posting Answers For Below Questions

describe how to adjust the performance of data integrator? : Sas-di

574


What is the difference between order and group variable in proc report?

853


do you prefer proc report or proc tabulate? Why? : Sas programming

585


How to create a permanent sas data set?

686


Explain how merging helps to combine data sets.

620






hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

1692


What is the work of tranwrd function?

676


Name and describe few sas character functions that are used for data cleaning in brief.

677


Briefly explain input and put function?

642


How long can a macro variable be? A token? : sas-macro

727


is data integration and etl programming is same? : Sas-di

586


what is sas and what are the functions? : Sas-administrator

548


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1670


How can I remove header from output data set?

2078


How to include or exclude specific variables in a data set?

653