This code produces two oracle statements, but only one is executed. options sastrace=',,,d' sastraceloc=saslog; proc sql; connect to oracle as CDBMR (path='PMIS' ........); create table work.test as select * from connection to cdbmr ( select date_value from mdm.dbdates where date_value= to_date('30Nov2013') ); DISCONNECT FROM CDBMR; quit; Here's the log: 16 proc sql; 17 connect to oracle as CDBMR (path='PMIS' ..........); 18 19 create table work.test as select * from connection to cdbmr ( 20 select date_value from mdm.dbdates 21 where date_value= to_date('30Nov2013') 22 ); ORACLE_4: Prepared: on connection 5 select date_value from mdm.dbdates where date_value= to_date('30Nov2013') ORACLE_5: Executed: on connection 5 SELECT statement ORACLE_4 NOTE: Table WORK.TEST created, with 1 rows and 1 columns. What does your log look like?
... View more