Question 116

You have a dataset with a variable 'SALES' containing sales values. You need to create a new variable 'SALES CATEGORY' that categorizes sales as follows: - 'High' if SALES is greater than or equal to 10000 - 'Medium' if SALES is greater than or equal to 5000 but less than 10000 - 'Low' if SALES is less than 5000 Which code snippet correctly achieves this using the INT function?
  • Question 117

    You are analyzing a dataset named 'EMPLOYEES' with variables 'EmployeelD', 'Department', and 'Salary'. You want to create a new dataset 'HIGHEST SALARY' that contains the employee with the highest salary in each department. Which SAS code snippet correctly performs this task?
  • Question 118

    Consider the following SAS code:

    Which of the following statements is TRUE about the SAS code?
  • Question 119

    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?
  • Question 120

    What happens when you submit the code shown below?
    data table1 table2;
    set sashelp.shoes;
    output;
    run;