ERROR 22-322: Synta...
 
Notifications
Clear all

ERROR 22-322: Syntax error, expecting one of the following:

1 Posts
1 Users
0 Likes
290 Views
 Chas
(@heddinschas)
Posts: 712
Noble Member
Topic starter
 

After a SAS program is submitted, the following is written to the SAS log:

105 data january;

106 set allmonths(keep = product month num_sold cost);

107 if month = ‘Jan’ then output january;

108 sales = cost * num_sold;

109 keep = product sales;

------

22

ERROR 22-322: Syntax error, expecting one of the following:!, !!, &, *,**, +, -,/, <,< =, <>, =, >, ><, >=,

AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR,^=,|,II,

110 run;

What changes should be made to the KEEP statement to correct the errors in the LOG?

  • A . keep product sales;
    B. keep product, sales;
    C. keep = product, sales;
    D. keep = (product sales);

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 25/10/2022 5:10 pm

Latest SAS Institute A00-211 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: