Question 8: What happens when you run the following program?

 proc sort data=work.newcourses;

 run;

 proc print data=work.newcourses;

 var ID COURSENAME FEE;

 where Fee=5000;

 run;

  1.          PROC PRINT Step will run and print the result in sorted order.
  2.     Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 3 Exp : As you can see whenever you need to sort the data you have to provide on which variable you want to sort. As given in the question sort step does not have any BY statement, which causes SORT step to get failed. However, dataset exist hence print step will be successful and produce the result. See below the correct syntax.

You can access to full explanation to question and answer from this page.