A00-215 practice question 5 of 15
Which PROC SORT option allows you to create an output data set of the sorted data?
Full set: 78 questionsIn SAS, the PROC SORT procedure is used to sort data. To save the sorted data into a new dataset, the OUT= option is used in the PROC SORT statement. This option allows you to specify the name of the output dataset that will contain the sorted data. Here is how it's used: proc sort data=original out=sorted; by variable; run; will sort the dataset original by variable and create a new dataset named sorted containing the sorted data.
Option A, Data=, is not valid for the PROC SORT procedure. Option B, SORTOUT=, is a common misconception but is not correct; OUT= is the right option. Option C, OUTPUT=, is not used within PROC SORT; it is used in other procedures such as PROC TABULATE and PROC SUMMARY for output datasets.
Reference: SAS 9.4 documentation for the PROC SORT statement: SAS Help Center: PROC SORT
Keep practicing
Take the free A00-215 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other A00-215 practice questions
- Question 1Which statement is true regarding the XLSX engine in the LIBNAME statement?
- Question 2Which ODS EXCEL statement correctly creates an Excel using the ANALYSIS style?
- Question 6Which LABEL statement has correct syntax?
- Question 8Which PROC PRINT step correctly displays only the first 10 observations in the data set?
- Question 12How does SAS display missing values?
- Question 13Which step temporarily assign a format to the sales variable?
