Which LIBNAME statement has the correct syntax for accessing SAS data sets?
Correct Answer: C
Question 12
You submit a program and the SAS log is shown below: Which statement is true regarding the submitted program?
Correct Answer: C
The correct answer is C. The DATA step and PROC PRINT steps ran without errors. In the SAS log shown, there is a clear error in the PROC SORT step because of the use of an incorrect option by ascending Increase which caused the "Variable ASCENDING not found" error. However, the DATA step completed successfully, as indicated by the "NOTE" that follows it, confirming that 56 observations were read from the SASHELP.SHOES data set where Region is Africa. Additionally, the PROC PRINT step also completed successfully, indicated by the "NOTE" at the bottom of the log which confirms that 56 observations were read from the WORK.AFRICA data set, implying the PROC PRINT step executed without issue. A is incorrect because the error in PROC SORT did not cause the program to stop; SAS continued processing the next steps. B is incorrect because the PROC SORT step did not run successfully. D is incorrect because the PROC PRINT step did not fail; it ran successfully. References: * SAS documentation on error messages. * Understanding the SAS log and error messages.
Question 13
Which statement is true regarding variable names?
Correct Answer: C
Question 14
Given the SAS data set WORK PRODUCTS: The following SAS program is submitted: How many variables does the WORK REVENUE data set contains?
Correct Answer: B
Question 15
Which two correctly create a SAS date value? (Choose two.)
Correct Answer: A,C
To create SAS date values, the correct syntax involves specifying the date in a string format followed by the letter 'd'. This indicates to SAS that the string should be interpreted as a date value. Therefore, the correct answers are: * A. "10/19/2019"d - This format directly specifies the month, day, and year, enclosed in quotes followed by 'd', which SAS correctly interprets as a date value. * C. "19Oct2019"d - This format uses a three-letter abbreviation for the month combined with the day and year, also followed by 'd'. This is another valid way to specify a date in SAS. Option B, mdy(10, 19, 2019), is incorrect because while the MDY function does create date values from month, day, and year components, the function itself should be used within a DATA step or another context where SAS functions are evaluated, and it doesn't directly create a date literal in the same way as options A and C. Option D, mdy(19, Oct, 2019), is syntactically incorrect because the MDY function expects numeric arguments for the month, day, and year, and "Oct" as a literal month name is not a valid numeric argument. References: SAS 9.4 Language Reference: Concepts.