I'm trying to create macros in sql and I'm also trying to create a table and that my code and the error that I got proc sql ; create table &visit.2 as select count (distinct internal_visit_id) AS counttime, 1360 AS TIME_POINT_CONTRACTED from &visit.1 where Earliest_Visit_Date ne . select counttime , TIME_POINT_CONTRACTED into :counttimet, :timecont from &visit.2; quit; 71 proc sql ; 72 create table &visit.2 as 73 select count (distinct internal_visit_id) AS counttime, 1360 AS TIME_POINT_CONTRACTED 74 from &visit.1 75 where Earliest_Visit_Date ne . 76 select counttime into :counttimet from &visit.2; ______ 22 76 ERROR 22-322: Syntax error, expecting one of the following: <, <=, <>, =, >, >=, EQ, EQT, EXCEPT, GE, GET, GT, GTT, INTERSECT, LE, LET, LT, LTT, NE, NET, UNION, ^=, ~=. ERROR 76-322: Syntax error, statement will be ignored.
... View more