When using SAS Viya, you want to perform a linear regression analysis on a dataset stored in the cloud. You decide to use an action from the 'regression' action set. Which of the following actions should you invoke to perform this task using a CAS session?
Consider the following SAS code which intends to retrieve values from an array to calculate the average sales for the first quarter: `
data work.quarterly_sales;
array qtr_sales[3];
do i=1 to 3;
set sales_data(keep=jan feb mar);
qtr_sales[i] = sales_data{i};
end;
avg_sales = mean(of qtr_sales[*]);
run;
The dataset `sales_data` has three variables named `jan`, `feb`, and `mar`, containing the sales for each month of the first quarter. Which statement is true regarding this code?
A programmer wants to create a new variable that increments by 1 each time a new group, defined by the BY statement, is encountered in the dataset. Which SAS programming technique can achieve this?
You are working on a project where multiple in-memory tables have been created during a CAS session using SAS Viya. As part of memory management, you've been asked to remove a specific table, 'sales_data', from memory. Which of the following code snippets correctly uses the table.dropTable action to accomplish this task?
You are required to modify an existing table named "sales_data" by adding a new column titled "discount_amount" that will store numerical values representing the discount given for each sale. Which of the following ALTER TABLE statements would correctly add the required column?
© Copyrights FreePDFQuestions 2025. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.