A00-215試験無料問題集「SASInstitute SAS Certified Associate: Programming Fundamentals Using SAS 9.4 認定」

You have a SAS data set named 'PRODUCTS' with variables 'ProductlD', 'ProductName', 'Price', and 'Category'. You need to create a new data set 'PRODUCT SALES' with only the products in the 'Electronics' category, and you want to include a new variable called 'TotalSales' calculated as 'Price 100' for each product. Which SAS code snippet achieves this?

解説: (GoShiken メンバーにのみ表示されます)
You are working with a large dataset containing information on customer transactions. You need to generate a report showing only transactions that occurred in the month of December and involved amounts greater than $1000. Which of the following WHERE statements would achieve this?

解説: (GoShiken メンバーにのみ表示されます)
You have a dataset containing product information, including a variable named 'Category' with values such as 'Electronics', 'Clothing', 'Food', and 'Furniture'. You want to create a report that displays the total sales for each category, but you want to group 'Food' and 'Furniture' together under a new label 'Home & Living'. Which approach would you use?

解説: (GoShiken メンバーにのみ表示されます)
You have a dataset 'CUSTOMER' with variables 'CUSTOMER ID', 'NAME', and 'STATE'. You need to sort the dataset based on 'STATE', but only for customers whose 'CUSTOMER ID' is greater than 1000. Which PROC SORT statement would achieve this?

解説: (GoShiken メンバーにのみ表示されます)
You have a dataset with a variable 'Sales' containing numeric values. You need to create a new variable 'SalesCategory' that classifies the sales values into three categories: 'Low' (Sales < 1000), 'Medium' (1000 <= Sales < 5000), and 'High' (Sales >= 5000). Which SAS code snippet correctly implements this using the DO loop and IF-THEN/ELSE statements?

解説: (GoShiken メンバーにのみ表示されます)
You have a SAS dataset with a date variable 'START DATE' in the format 'YYYY-MM-DD'. You want to calculate the number of days between the 'START DATE' and the current date. Which SAS code snippet achieves this correctly?

解説: (GoShiken メンバーにのみ表示されます)
You have a dataset with a variable 'START DATE' representing the start date ofa project. You want to create a new variable 'END DATE' which is set to the 1st of the month following 'START DATE'. Which code snippet correctly calculates 'END DATE'?

解説: (GoShiken メンバーにのみ表示されます)
You need to create a new variable 'FULL NAME' by concatenating the values from variables 'FIRST NAME', 'MIDDLE NAME', and 'LAST NAME', separated by a space. However, the 'MIDDLE NAME' variable might be missing for some observations. Your code should handle this scenario by only including the 'MIDDLE NAME' if it is not missing. Which code snippet accomplishes this task using the 'CAT X' function?

解説: (GoShiken メンバーにのみ表示されます)
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?

解説: (GoShiken メンバーにのみ表示されます)
You have a dataset 'CUSTOMERS' with variables 'CUSTOMER ID', 'ORDER DATE', and 'ORDER AMOUNT'. You need to calculate the total order amount for each customer and then calculate the average order amount across all customers. Which code snippet achieves this correctly?

解説: (GoShiken メンバーにのみ表示されます)
You have a SAS data set 'SALES DATA' with a variable 'DATE' representing the sale date. You need to create a new data set 'SALES BY MONTH' that summarizes sales by month. You want to include only the observations from the 'SALES DATA' dataset where the 'DATE' variable falls between January 1st and March 31st of the current year. How would you achieve this, using the SET statement and the IN T NX function?

解説: (GoShiken メンバーにのみ表示されます)
You are analyzing a SAS dataset with a variable 'CITY' of type character. You want to replace all missing values in 'CITY' with the value 'UNKNOWN' using a data step. Which code snippet correctly achieves this?

解説: (GoShiken メンバーにのみ表示されます)