Question 111
You have a SAS dataset named 'CUSTOMERS' with variables 'CustomerlD', 'Name', 'Address', and 'City'. You want to create a new dataset 'CUSTOMERS CITY' that contains only unique city names from the 'CUSTOMERS' dataset. Which SAS code snippet correctly performs this task?
Question 112
You have a dataset 'EMPLOYEES' with variables 'EMPLOYEE ID', 'DEPARTMENT', and 'SALARY'. You want to create a new dataset 'HIGHEST SALARY BY DEPT' that contains the highest salary for each department. However, you also need to create a variable called 'RANK' that indicates the rank of each employee's salary within their department, with the highest salary being ranked 1. Which of the following DATA step code snippets will achieve this correctly?
Question 113
Given the following assignment statement:
BirthDate = 15DEC2005'd;
Which statement is true?
BirthDate = 15DEC2005'd;
Which statement is true?
Question 114
Consider the following SAS code:

What is the order in which the statements in the DATA step are executed for a single record in the WORK.OLD DATA dataset?

What is the order in which the statements in the DATA step are executed for a single record in the WORK.OLD DATA dataset?
Question 115
You have a SAS dataset named 'SALES DATA' with variables 'SALES DATE', 'PRODUCT ID', and
'QUANTITY SOLD'. You want to create a new data set called 'PRODUCT SUMMARY' that summarizes the total quantity of each product sold per month. Which DATA step code snippet correctly creates this summary dataset using a 'BY' statement?
'QUANTITY SOLD'. You want to create a new data set called 'PRODUCT SUMMARY' that summarizes the total quantity of each product sold per month. Which DATA step code snippet correctly creates this summary dataset using a 'BY' statement?
