The following SAS program is submitted:data WORK.OUTDS;do until(Prod GT 6);Prod + 1;end;run;What is the value of the variable Prod in the output data set?
The following SAS program is submitted:The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which inserted code will accumulate subtotals for each Gender withinDepartment?
Which step displays a listing of all the data sets in the WORK library?
Given the SAS data set WORK.ORDERS:The variable order_id is numeric; customer is character; and shipped is numeric, contains a SAS date value, and is shown with the DATE9. format. A programmer would like to create a new variable, ship_note, that shows a character value with the order_id, shipped date, and customer name. For example, given the first observation ship_note would have the value "Order 9341 shipped on 02FEB2009 to Josh Martin".Which of the following statement will correctly create the value and assign it to ship_note?
After a SAS program is submitted, the following is written to the SAS log:105 data WORK.JANUARY;106 set WORK.ALLYEAR(keep=Product Month Quantity Cost);107 if Month='JAN' then output WORK.JANUARY;108 Sales=Cost * Quantity;109 drop=Month Quantity Cost;-----ERROR 22-322: Syntax error, expecting one of the following: !,!!, , *, **, +, -,, <=, <>, =, >, >=,AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,NOTIN, OR, ^=, |, ||, ~=.110 run;What data set option could be attached to WORK.JANUARY to replace the DROP statement that generated the error in the log?
Consider the following data step:The computed variables City and State have their values assigned using two different methods, aRETAIN statement and an Assignment statement. Which statement regarding this program is true?