A00-215 Exam Question 61
You need to create a new SAS dataset named 'sales_summary' from the existing dataset 'sales' and include only the rows where the 'product' variable is equal to 'laptop' or 'tablet'. The 'sales' dataset has variables 'product', 'quantity', and 'price'. Which of the following code snippets will achieve the desired result? "Option A:,,








A00-215 Exam Question 62
You have a SAS dataset named 'CUSTOMERS' with variables 'CUSTOMER ID', 'CITY', 'STATE', and 'SALES'. You need to create a new dataset called 'HIGH SALES' containing only customers from the state 'CA' who have sales greater than $10000. Which code snippet will achieve this?
A00-215 Exam Question 63
You are working with a dataset containing customer names. Some names are longer than 20 characters. You need to truncate these names to a maximum of 20 characters. Which of the following code snippets correctly uses the LENGTH statement to achieve this within a DATA step? ' 'Note' ': Assume the variable 'CustomerName' is a character variable.
A00-215 Exam Question 64
You have a SAS dataset 'SALES DATA with variables 'PRODUCT ID' (numeric), 'PRODUCT NAME' (character), 'SALES AMOUNT' (numeric), and 'SALES DATE' (date). You need to create a new dataset 'SALES SUMMARY' that summarizes total sales by product, grouping by 'PRODUCT NAME'. Which of the following SAS code snippets correctly creates the 'SALES SUMMARY' dataset with the required summarization?
A00-215 Exam Question 65
You are tasked with generating a series of reports for different departments, each with its unique title and a consistent footer containing the report generation date. How can you achieve this using the TITLE statement effectively? Select all that apply.