Question : 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?
The computed variables City and State have their values assigned using two different methods, a RETAIN statement and an Assignment statement. Which statement regarding this program is true? 1. The RETAIN statement is fine, but the value of City will be truncated to 8 bytes as the LENGTH statement has been omitted. 2. Both the RETAIN and assignment statement are being used to initialize new variables and are equally efficient. Method used is a matter of programmer preference. 3. Access Mostly Uused Products by 50000+ Subscribers statement has been omitted. 4. City's value will be assigned one time, State's value 5 times.
1. The descending option applies to the variable Code. 2. The variable Code is sorted by ascending order. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The descending option applies to the Date and Cost variables.