A00-215 Exam Question 141

You have a SAS dataset named 'TRANSACTIONS' with variables 'TRANSACTION D', 'PRODUCT ID', 'CUSTOMER ID', 'AMOUNT', and 'DATE'. You need to create a new dataset called 'HIGH TRANSACTIONS' containing only transactions with amounts greater than $1000, but only if the transaction occurred in the last three months. Which code snippet will achieve this?
  • A00-215 Exam Question 142

    You have a dataset 'PRODUCTS' with variables 'ProductlD', 'ProductName', and 'Price'. You want to create two new variables: 'DiscountedPrice' and 'DiscountPercentage'. 'DiscountedPrice' should be calculated as 'Price' , 0.9 if 'Price' is greater than 100, and as 'Price' , 0.8 if 'Price' is less than or equal to 100. 'DiscountPercentage' should be calculated as (Original Price - Discounted Price) / Original Price , 100. Which code snippet correctly implements this logic in the DATA step? (Select all that apply)
  • A00-215 Exam Question 143

    You have three datasets: 'ORDERS', 'CUSTOMERS', and 'PRODUCTS', all sharing the same 'CUSTOMER ID' and 'PRODUCT ID' variables. You need to create a combined dataset with customer information and product details for every order in 'ORDERS'. What is the correct sequence of MERGE statements to achieve this?
  • A00-215 Exam Question 144

    Consider the following SAS code snippet:

    The code is intended to assign 'SAN FRANCISCO' to the 'CITY' variable for all customers residing in California ('CA'). However, it is not working as expected. Which of the following adjustments would be MOST effective in identifying the exact cause of the logic error and aiding in debugging the code?
  • A00-215 Exam Question 145

    You need to create a report summarizing sales data by product and month, including the total sales for each product and month, as well as the cumulative total sales for each product across all months. Which code snippet would you use in the DATA step to calculate the cumulative total sales?