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 do you code to create a macro? : sas-macro

0 Answers  


what other sas products have you used and consider yourself proficient in using? : Sas programming

0 Answers  


data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat

2 Answers  


How do you delete duplicate observations in sas?

0 Answers  


Did you used proc lifetest? when?

2 Answers   Accenture, Parexel, Quintiles,






what is the prob plot in clinical domain

1 Answers   TCS,


What are the applications primarily used by business analyst? : Sas-bi

0 Answers  


What are Dashboard reports?And significance of these in analysis?

1 Answers  


How to write duplicate records into a separate dataset using sort?

4 Answers   HSBC,


i have a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window.how can we do this one?

6 Answers   GSK,


Why is SAS considered self-documenting?

1 Answers   Quintiles,


how to delete the duplicates by using proc sql?

3 Answers   Genpact,


Categories