I am trying to put the words from the List macro into the Objects column in specific scenarios. Here's an excerpt of the code: %let A= 16;
%let List= %str(apple, bee, church)
%put List= &List.;
OPTIONS MPRINT SYMBOLGEN MLOGIC;
data want; set have;
if C= "Yes" then
do;
Count = &A.;
Objects= &List.;
end;
run;
proc print data= want (obs=10); run; SYMBOLGEN says that the macro resolves correctly but I get this error when I run my code and the Objects column is not populated: NOTE: Line generated by the macro variable "List". 1 apple, bee, church - 22 - 76 ERROR 22-322: Syntax error, expecting one of the following: (, [, { The under scores are on the comma after the first word. Any insight or possible solutions are appreciated
... View more