how to get second highest salary from a employee table and
how get a 5th highest salary from a employee table?
Answer Posted / poorna m
proc sort data=emp out=emp1 nodupkey;
by descending sal empid;
run;
PROC RANK DATA=emp1 OUT=emp3 TIES=LOW DESCENDING;
VAR sal ;
RANKS highestsal;
RUN;
data emp4;
set emp3;
where highestsal in (2,5);
run;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How will you generate test data with no input data?
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?
Give e an example of..
what are input dataset and output dataset options? : Sas programming
how can you create zero observation dataset? : Sas programming
What are the difficulties u faced while doing vital signs table or dataset?
which features do you use to check the data validations and errors? : Sas-administrator
Describe a time when you were really stuck on a problem and how you solved it?
Mention common programming errors committed in sas ?
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
why is sas considered self-documenting? : Sas programming
Describe 5 ways to do a “table lookup” in SAS?
What does proc print, and proc contents are used for?
what is data governance? : Sas-di
Hi, If anyone has base SAS certification dumps, please share.