A00-215 Exam Question 56

You have a SAS dataset named 'CUSTOMERS' with the following structure: Customer_lD,First_Name,Last_Name,Email 123,John,Doe,[email protected] 456,Jane,Smith,[email protected] 789,Peter,Jones,[email protected] You need to export this data to a CSV file named 'customers_export.csv' with the following requirements: 1. The data should be exported in a specific order: 'Customer ID', 'Last Name', 'First Name', 'Email'. 2. The data should be delimited by a semicolon (;) instead of the default comma (,). 3. The 'Email' column should be enclosed in double quotes ("). Which of the following PROC EXPORT statements would achieve this correctly? (Select all that apply)
  • A00-215 Exam Question 57

    You are working with a dataset containing a variable 'Region' with values like 'Northeast', 'Southeast', 'Midwest', etc. You want to create a report that displays these values with more user-friendly labels like 'NE', 'SE', 'MW' respectively, but you don't want to permanently change the dat a. Which PROC step and LABEL statement combination would you use?
  • A00-215 Exam Question 58

    You have two datasets, 'SALES' and 'CUSTOMER', both containing a common variable 'CUST ID'. You need to create a new dataset 'SALES WITH CUSTOMER INFO that includes all sales records from 'SALES' and corresponding customer information from 'CUSTOMER' based on 'CUST ID'. Which of the following MERGE statements will achieve this, assuming both datasets are sorted by 'CUST ID'?
  • A00-215 Exam Question 59

    You have a dataset named 'SALES' with variables 'Region', 'Product', and 'Quantity'. You want to create a new variable 'SalesValue' based on the following logic: If 'Product' is 'A', then 'SalesValue' = 'Quantity' , 10; If 'Product' is 'B', then 'SalesValue' = 'Quantity' , 15; Otherwise, 'SalesValue' = 'Quantity' , 20. Which code snippet correctly implements this logic in the DATA step?
  • A00-215 Exam Question 60

    You have a SAS dataset 'CUSTOMERS' with variables 'CUSTOMER ID', 'NAME', and 'CITY'. You need to create a new dataset 'ACTIVE CUSTOMERS' containing only those customers who have made purchases in the past 3 months. You have another dataset 'ORDERS' with variables 'ORDER ID', 'CUSTOMER ID', and 'ORDER DATE'. How would you use the SET statement to achieve this?