Code a PROC SORT on a data set containing State, District
and County as the primary variables, along with several
numeric variables?

Answer Posted / sassss

THE PREVIOUS ANSWER IS WRONG; THE SYNTAX OF PROC SORT IS AS
FOLLOWS
PROC SORT DATA=<DNAME>;
BY <VARNAME/S>;
RUN;

HENCE THE CORRECT ANSWER TO THE QUESTION IS:

proc sort data=x;
BY state district county;
run;

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about symput and symget?

739


How do you define proc in sas? : sas-grid-administration

682


what is broad cast agent? : Sas-bi

609


What is the role of sas grid administrator? : sas-grid-administration

841


What is a method to debug and test your SAS program?

731






What is a put statement?

671


what does the run statement do? : Sas programming

564


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1775


Give some examples where proc report’s defaults are different than proc print’s defaults?

607


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2016


how do you debug and test your sas programs? : Sas programming

571


Give some ways by which you can define the variables to produce the summary report (using proc report)?

608


Tell e how how dealt with..

1779


what is proc Index? and what is proc document?

2003


Explain the purpose of retain statement.

613