The following the problem from the free model test paper of Base SAS certification exam and the code I wrote.The answer I get is not tallying with the right answer given: This project will use data set cert.input27. At any time, you may save your program as program27 in cert\programs. You will use this program in the next project. Write a SAS program that will: o Create output data set results.output27a as a subset of cert.input27 where the country variable's value is "US" (any variation of case, such as US or us). o Sort results.output27a: first by the variable state in ascending order then by Postal_Code in descending order and finally by employee_ID in ascending order. Run the program and use the results to answer the question below. 1.What is the value of Employee_ID for observation 100 in results.output27a? Right Answer given is : 120781 My answer is 121030. I checked for the employee_id 120781. It is not there in the input27 dataset. can you kindly explain. The code I wrote : Proc sort data = cert.input27 out= output27; where upcase(country)='US'; by state descending postal_code employee_id; run; proc print data=output27 (firstobs=100 obs=100); var employee_id; run;
... View more