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

Answers were Sorted based on User's Feedback



Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / 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

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / chirag patel

Proc Sort Data = x ;
by State District County _Numeric_;
run ;

Is This Answer Correct ?    1 Yes 4 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / poornima

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

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More SAS Interview Questions

what is the purpose of _error_? : Sas programming

0 Answers  


what is the difference between %put and symbolgen?

6 Answers  


Hi im new to sas. I have a file with some charecter variables and some numeric variables now i want to load charecter variables into one datastep and numeric variables into another data step pls let me know Thanks

2 Answers  


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1 Answers   Pfizer,


describe the interaction table in sas di? : Sas-di

0 Answers  






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

0 Answers  


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  


The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?

6 Answers   Oracle,


What are the main differences between sas versions 8.2, 9.0, 9.1?

4 Answers  


How necessary is it to be creative in your work?

0 Answers   Oracle,


What is the difference between SAS Data step and SAS PROC SQL, and which is better?

1 Answers   TCS,


How many missing values are available? When might you use them?

1 Answers   Quintiles,


Categories