A00-215 Exam Question 76
You have a SAS dataset named 'SALES DATA' with variables 'SALES DATE', 'PRODUCT ID', and
'QUANTITY SOLD'. You want to create a new data set called 'PRODUCT SUMMARY' that summarizes the total quantity of each product sold per month. Which DATA step code snippet correctly creates this summary dataset using a 'BY' statement?
'QUANTITY SOLD'. You want to create a new data set called 'PRODUCT SUMMARY' that summarizes the total quantity of each product sold per month. Which DATA step code snippet correctly creates this summary dataset using a 'BY' statement?
A00-215 Exam Question 77
You have a dataset with a variable 'DATE STR' storing dates in the format 'YYYY-MM-DD'. You want to create a new variable 'DATE NUM' storing the date in numeric format (YYYYMMDD). Which code snippet correctly achieves this transformation?
A00-215 Exam Question 78
You have a SAS dataset 'PRODUCTS' with variables 'PRODUCT ID', 'PRODUCT NAME', and 'PRICE'. You need to export this dataset to a CSV file 'product_catalog.csv', but you want to exclude the 'PRODUCT ID' variable and only include rows where 'PRICE' is greater than 100. Which PROC EXPORT statement will achieve this?
A00-215 Exam Question 79
You have a dataset 'ProductData' with variables 'ProductlD', 'ProductName', 'Price', 'Quantity', and 'Category'. You need to update the 'Price' variable based on the following criteria: 1. If 'Category' is 'Electronics' and 'Quantity' is greater than 10, apply a 10% discount on the 'Price'. 2. If 'Category' is 'Books' and 'Price' is greater than 50, apply a 5% discount on the 'Price'. 3. Otherwise, leave the 'Price' unchanged. Which of the following DATA step code snippets will achieve this correctly?
A00-215 Exam Question 80
You are analyzing a dataset of sales transactions with various product categories. You want to sort the data by sales amount in descending order, but only within each product category. Which PROC SORT statement would achieve this?