Hi, I am trying to run below macro and it's showing the error. [SAS 9.4] MACRO: %Macro GetCheck(VariableList, ChoiceList, c);
%Let InSplitVar = %Scan (%bquote(&&&VariableList.), &c., %str(|));
%Let Decision = %Scan(%bquote(&&&ChoiceList.), &c., %str(|));
and &InSplitVar. &Decision.
%Mend GetCheck; ERROR: NOTE: Line generated by the macro variable "DECISION". 1 CORPORATE,GMAIL.COM,HOTMAIL.COM,LIVE.COM,REDIFF.COM,YAHOO.COM --------- 22 76 NOTE: Line generated by the macro variable "DECISION". 1 MSN.COM,MISSPELLED,SIFY.COM,UNKNOWN ------- 22 76 ERROR 22-322: Syntax error, expecting one of the following: (, [, {. ERROR 76-322: Syntax error, statement will be ignored. NOTE: Line generated by the macro variable "INSPLITVAR". 1 1 - 22 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, *, **, +, -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, LE, LT, MAX, MIN, NE, NG, NL, OR, [, ^=, {, |, ||, ~=. Thanks in advance.
... View more