A00-215 Exam Question 1

You are working with a dataset containing information about employees, including their 'HireDate' (in SAS date format) and 'TerminationDate' (also in SAS date format). You need to create a new variable 'Tenure' that represents the number of days an employee worked for the company. However, you want to treat employees who are still active as having their 'TerminationDate' set to today's date. Which code snippet correctly calculates the tenure, considering active employees?
  • A00-215 Exam Question 2

    You are tasked with analyzing a SAS program that calculates a customer's total spending based on multiple transactions. The program unexpectedly produces incorrect totals for certain customers. After reviewing the code, you notice a statement within a loop that is not properly handling negative transaction amounts. Which of the following best describes the type of error you are dealing with, and how would you effectively use the PUTLOG statement to identify the source of the issue?
  • A00-215 Exam Question 3

    You are tasked with generating a PDF report from a SAS dataset containing customer dat a. The report needs to be formatted with a specific style and exported to a file named "customer report.pdf". Which code snippet would achieve this using ODS and the "STYLE=' option?
  • A00-215 Exam Question 4

    You have a SAS dataset called 'EMPLOYEES' with variables 'EMPLOYEE ID', 'FIRST NAME', 'LAST NAME', 'DEPARTMENT', 'SALARY, 'HIRE DATE'. You need to create a new dataset called 'EMPLOYEES HIGH SALARY' containing only employees with salaries greater than $100,000, and you want to rename the 'SALARY' variable to 'HIGH SALARY'. Which code snippet correctly achieves this?
  • A00-215 Exam Question 5

    You have a SAS dataset named 'CUSTOMERS' with variables 'CUST ID' and 'CITY'. You want to generate a report that displays the city names in a column titled 'Location' instead of 'CITY' and assign a specific label to the 'CUST ID' variable. Which code snippet correctly uses the LABEL statement for the required modifications?