A00-215 Exam Question 31
You have a SAS dataset named 'mydata' containing customer information, and you need to export it to a CSV file named 'customers.csv'. You want to include only the 'CustomerlD', 'Name', and 'City' variables in the output file and ensure that the data is delimited by a semicolon (;). Which PROC EXPORT statement accomplishes this task?
A00-215 Exam Question 32
You are working with a dataset containing customer addresses. You need to ensure that the addresses are stored in a way that avoids unnecessary whitespace. Which of the following code snippets correctly uses the LENGTH statement to achieve this, taking into consideration the removal of leading and trailing whitespaces?
A00-215 Exam Question 33
You have a dataset 'CUSTOMER' with variables 'CustomerlD', 'Name', and 'City'. You want to create a new variable 'Region' based on the 'City' variable using the following rules: If 'City' starts with 'New', then 'Region' = 'Northeast'; If 'City' is 'Los Angeles', then 'Region' = 'West'; otherwise, 'Region' = 'Other'. Which code snippet correctly implements this logic in the DATA step?
A00-215 Exam Question 34
You have a dataset 'sales_data' with variables 'Region', 'Product', and 'Sales'. You want to create a frequencyreport that displays the frequency counts for each region and product combination, but you only want to see the counts for those combinations where the sales value is greater than $10,000. How would you modify the PROC FREQ statement to achieve this?
A00-215 Exam Question 35
Which ODS EXCEL statement correctly creates an Excel workbook using the ANALYSIS style?