You are utilizing the TABLE action set in SAS Viya for a data manipulation task that requires you to append new rows to an existing table. Which TABLE action would you employ to accomplish this, and what is the important option or parameter to ensure new rows are appended correctly?
A data analyst needs to create a view that includes data from the 'transactions' table but only for the records where the transaction amount is higher than 5000. Which PROC SQL code snippet would allow the analyst to create this view in SAS Viya correctly?
You are designing a stored process in SAS Viya and you need to dynamically pass a table name into a SQL step. Which of the following SAS macro invocations would correctly supply a dataset name to the macro so that it can be used in the SQL step to reference a table parameter named 'myTable'?
Consider a scenario where you want to calculate the sum of sales for each product category stored in a CAS table called 'sales_data'. The table contains a large number of product categories and sales values. Which procedure would you use to calculate these sums and save the results to a new CAS table efficiently?
You are tasked with running a procedure to analyze a categorical variable 'BrandType' in your dataset, which contains over 100 unique brands. You're interested in performing a chi-square test to understand the association of 'BrandType' with another variable, 'PurchaseIntent'. However, given the high number of brands, you want to limit the chi-square test to only include the top 5 brands by frequency. What is the correct way to perform this in PROC FREQTAB?