proc sql; select name into : table from country.DETAIL where ID = 34 and CD = "abc" ; quit; proc sql; select name into : table from country.DETAIL where ID = &first_id. and CD = "abc" ; quit; First query is running fine and second throwing error: ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, *, **, +, -, '.', /, <, <=, <>, =, >, >=, AND, EQ, EQT, GE, GET, GROUP, GT, GTT, HAVING, LE, LET, LT, LTT, NE, NET, OR, ORDER, ^=, |, ||, ~=. ERROR 76-322: Syntax error, statement will be ignored. can you please help why hard coding macro variable value is not giving any error but macro variable is giving error
... View more