A00-215 Exam Question 111
You are working with a SAS dataset named 'customer_data' that has a variable named 'customer_name' with a length of 30 bytes. You want to create a new dataset named 'customer summary' and include only the first 10 characters of the 'customer name' variable in a new variable called 'short_name'. Which of the following code snippets will achieve the desired result? "Option A:"




A00-215 Exam Question 112
You have a SAS dataset named 'CUSTOMERS' with variables 'CUST D', 'NAME', 'CITY', 'STATE', and 'ZIP'. You need to create a new dataset called 'ACTIVE CUSTOMERS' that contains only the first 100 observations from the 'CUSTOMERS' dataset and includes only the 'CUST ID' and 'NAME' variables. Which code snippet will correctly achieve this?
A00-215 Exam Question 113
You are working with a dataset containing a variable 'START DATE' that stores dates in the format 'YYYY-MM- DD'. You need to create a new variable 'DAYS SINCE START' that calculates the number of days since the start date for each record. Which SAS code snippet correctly achieves this?
A00-215 Exam Question 114
You are tasked with analyzing a dataset where the date variable 'TransactionDate' is stored as a numeric value representing the number of days since January 1, 1960. You need to display the date in the format 'MMDDYYI 0.' Which SAS code snippet accomplishes this task correctly?
A00-215 Exam Question 115
You are tasked with creating a report that displays the sales figures for different products. The sales data is stored in a dataset named 'SALES' with variables 'Product', 'Quantity', and 'Price'. You want to create a new variable called 'SalesValue' by multiplying 'Quantity' and 'Price', and then present the 'SalesValue' in a formatted way using the following conditions: - For 'SalesValue' less than 100, display the value with a '$' prefix and two decimal places. - For 'SalesValue' between 100 and 1000, display the value with a 'K' suffix and one decimal place. - For 'SalesValue' greater than 1000, display the value with an 'M' suffix and no decimal places. Which of the following code snippets correctly implements the required formatting using the FORMAT statement for temporary attributes?