A00-215 Exam Question 106
You have a dataset named 'SALES' containing sales records for different products. You need to sort the dataset by 'PRODUCT ID' in ascending order and then by 'SALES DATE' in descending order. Which PROC SORT statement achieves this?
A00-215 Exam Question 107
You have a SAS dataset 'SALES' with variables 'ORDER DATE' (numeric, date format) and 'PRODUCT NAME'. You need to create a new dataset 'SALES BY MONTH' that summarizes the sales by month. The dataset should include the month (as a character variable 'MONTH'), the year (as a numeric variable 'YEAR'), and the total sales for that month ('TOTAL SALES'). Which SAS code snippet correctly creates 'SALES BY MONTH'?
A00-215 Exam Question 108
You have a dataset called 'EMPLOYEES' with variables 'DEPARTMENT', 'SALARY', and 'YEARS OF SERVICE'. You want to create a new variable called 'AVG SALARY DEPT' that contains the average salary for each department, considering only employees with more than 5 years of service. What SAS code snippet would correctly achieve this?
A00-215 Exam Question 109
You have a CSV file named 'sales_data.csv' with a header row containing the following columns: 'customer_id', 'product_name', 'purchase_date', 'quantity', 'price'. You want to import this file into a SAS dataset named 'SALES' with the following data types: 'customer_id' as a numeric variable, 'product_name' as a character variable of length 50, 'purchase date' as a date variable, 'quantity' as a numeric variable, and 'price' as a numeric variable. Which PROC IMPORT statement correctly achieves this?
A00-215 Exam Question 110
You are building an interactive dashboard that displays sales data from a SAS dataset. The dashboard needs to be generated as an HTML file that includes interactive charts and tables. Which of the following methods can be used to achieve this using ODS?