Question 16

How does SAS display missing values?
  • Question 17

    You have a dataset 'ORDERS' with variables 'ORDER D', 'CUSTOMER ID', and 'ORDER DATE'. You want to create a new dataset 'RECENT ORDERS' containing only the records where the 'ORDER DATE' is within the last 30 days (excluding today) and only the 'ORDER ID' and 'CUSTOMER ID' variables should be included. The date format is 'YYYY-MM-DD'. Which SAS code snippet would achieve this correctly?
  • Question 18

    You're working with a dataset 'CUSTOMER DATA' containing customer information, including 'CUSTOMER ID', 'AGE', 'INCOME', and 'CITY'. You need to analyze customer spending patterns based on income level, but only for customers residing in 'New York City'. Which code snippet correctly subsets the data for this analysis?
  • Question 19

    You're analyzing a dataset containing customer satisfaction ratings (1-5) and want to create a report showing the frequency distribution of ratings. However, you want the report to display the 'Excellent' (5) rating at the top and 'Poor' (1 ) rating at the bottom. Which PROC FREQ statement would achieve this?
  • Question 20

    Which statement is true when creating two SAS data sets with a DATA step?