Question 81
You have a SAS dataset named 'SALES' with variables 'REGION', 'PRODUCT', and 'SALES AMOUNT'. You want to create a new dataset named 'HIGH SALES' containing only observations where 'SALES AMOUNT' is greater than 10000 and the 'REGION' is 'North'. Which of the following DATA step code snippets would achieve this?
Question 82
You have a dataset with customer orders, and you need to analyze the order frequency of each customer. You decide to use PROC SORT to group orders by customer ID and then count the number of orders per customer. What additional step is required to make it easier to count the number of orders per customer after sorting?
Question 83
You are generating a report using PROC REPORT and want to add a footnote at the bottom of each page that explains the data source. Which of the following FOOTNOTE statement options is most appropriate for achieving this?
Question 84
You have a SAS data set named 'SALES' stored in a directory \\server\dat a. You need to access this data set using a LIBNAME statement. Which of the following LIBNAME statements will successfully access the data set and allow you to read its contents?
Question 85
You have a CSV file named 'sales_data.csv' with the following structure: Product,Region,Sales Product A,North,1000 Product Product C,East,800 Product D,West, 1200 You need to import this data into a SAS dataset named 'SALES' with the following requirements: 1. The 'Sales' column should be converted to a numeric variable. 2. The 'Region' column should be treated as a character variable. 3. The 'Product' column should be the primary key. Which of the following PROC IMPORT statements would achieve this correctly?
