Ok, here's where I'm at now; The error is this - I can't see an error in the syntax or why this would error, any suggestions/ideas? ERROR 22-322: Syntax error, expecting one of the following: ',', GROUP, HAVING, ORDER, WHERE. proc sql;
25 connect to oracle as ora (path="(DESCRIPTION=(ADDRESS = (PROTOCOL = TCP)
26 (HOST = xxxxxxxxxxxxxxxxxx.com)(PORT = 1234)
27 (CONNECT_DATA = (SERVICE_NAME=xxxxxx)))"
28 user=xxxxxxx pw=XXXXXXXXXX);
29
30 create table sales as select * from connection to ora
31 (
32 select distinct
33 ID
34
35 from Table_1
36
37 WHERE rownum < 50
38 ) by ora;
___
22
76
ERROR 22-322: Syntax error, expecting one of the following: ',', GROUP, HAVING, ORDER, WHERE.
ERROR 76-322: Syntax error, statement will be ignored.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
39
40
41 create table TABLE_4 as select * from connection to ora
42 (
43 select DISTINCT
44 ID
45 from Table_1
46 );
2 The SAS System 09:40 Sunday, March 11, 2018
NOTE: Statement not executed due to NOEXEC option.
47
48 Disconnect from ora ;
... View more