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 are some differences between proc summary and proc means? : Sas programming

0 Answers  


what is p-value

3 Answers   Accenture, Quintiles, Sristek,


What are the difficulties u faced while doing vital signs table or dataset?

0 Answers  


What does PROC print, and PROC contents do?

0 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.

10 Answers   Accenture,






Mention sas system options to debug sas macros.

0 Answers  


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

0 Answers   Accenture,


There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.

3 Answers   CTS,


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

0 Answers  


Have you been involved in editing the data or writing data queries?

1 Answers   BioServe, Oracle, Sasken,


HOW DO WE CREATE A SAS STORED PROCESS IN SAS EG ?

1 Answers   TCS,


explain the function of substr in sas? : Sas-administrator

0 Answers  


Categories