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
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 |
Answer / chirag patel
Proc Sort Data = x ;
by State District County _Numeric_;
run ;
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / poornima
proc sort data=x;
var state district county;
run;
| Is This Answer Correct ? | 0 Yes | 8 No |
Name statements that are execution only.
what is the prob plot in clinical domain
if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record
what is the use of proc contents and proc print in sas? : Sas-administrator
how does sas handle missing values in procs? : Sas programming
How to convert a numeric variable to a character variable?
diff between nodup rec and ondup key???
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
what other SAS features do you use for error trapping and data validation?
What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here
how we can call macros with in data step?
which features do you use to check the data validations and errors? : Sas-administrator