Hi,
I would like to merge two data set and also create a new variable by using proc sql. This is my code but am getting the following syntax error.
proc sql;
create table final_table_0607 as
select * from case_07 as x left join mth_0607 as y
on x.bene_id = y.bene_id
where month_fu-(mondx1+12) as month_std;
__
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, !, !!, &, *, **, +, -, /, <, <=, <>, =, >, >=, ?, AND, BETWEEN,
CONTAINS, EQ, EQT, EXCEPT, GE, GET, GROUP, GT, GTT, HAVING, IN, INTERSECT, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT,
NOTIN, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~, ~=.
ERROR 76-322: Syntax error, statement will be ignored.
... View more