A00-215 Exam Question 181

You are working with a SAS dataset named 'CUSTOMERS' that has a variable called 'NAME'. You need to create a new variable called 'NAME LENGTH' that stores the length of each customer's name. Which of the following SAS code snippets would achieve this correctly?
  • A00-215 Exam Question 182

    Your SAS program generates the following messages in the log:

    Which of the following statements are true about this situation? Select all that apply.
  • A00-215 Exam Question 183

    Consider the following DATA step code:

    Which of the following statements are TRUE about the execution of this code? 1. The variable 'name' will be truncated to 10 characters during input. 2. The variable 'name' will be automatically padded with spaces if it is less than 10 characters. 3. The variable 'id' will be assigned a default length of 8 bytes. 4. The variable 'age' will be assigned a default length of 8 bytes. 5. The variable 'name' will be assigned a default length of 20 bytes.
  • A00-215 Exam Question 184

    You are analyzing a dataset named 'EMPLOYEES' with variables 'EmployeelD', 'Department', and 'Salary'. You want to create a new dataset 'HIGHEST SALARY' that contains the employee with the highest salary in each department. Which SAS code snippet correctly performs this task?
  • A00-215 Exam Question 185

    You have a dataset 'CUSTOMERS' with variables 'CUSTOMER ID', 'ORDER DATE', and 'ORDER AMOUNT'. You need to calculate the total order amount for each customer and then calculate the average order amount across all customers. Which code snippet achieves this correctly?