小弟对SQL不熟悉,运行程序时发现有错,不知该如何?也不知有没有DATA步的程序能解决这个问题!
166 proc sql;
167 create table output as
168 select a.var1,a.var2,b.var2 as var3 from a cross join b
NOTE: SCL source line.
169 on a.var1=b.var1
--
22
76
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, ',', '.', ANSIMISS, AS, CROSS, EXCEPT, FULL, GROUP, HAVING, INNER, INTERSECT, JOIN,
LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.
ERROR 76-322: Syntax error, statement will be ignored.
170 order by var1,var2,var3;
171 quit; |