Erreur dans une création de table
Quand j'éxécute ce code j'ai ce message d'erreur:
Code:
1 2
| ERROR: CLI prepare error: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00907: parenthèse de droite absente
SQL statement: select * from bale2.CREDOPOS where datefm = to_date(30/04/2017 00:00:00) |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| %macro Test(table=); /*(table, table)
/*options compress=YES;*/
%put "créer les tables à partir de la base oracle";
proc sql ;
connect to odbc( datasrc="BIBU_PROD"
user=BIBU
password= F67TKX1LBJ72FAUUYS
insertbuff=32767);
CREATE TABLE &table. as
Select * from connection to odbc
(select * from bale2.CREDOPOS
where datefm = to_date(30/04/2017 00:00:00));
CREATE TABLE &table. as
Select * from connection to odbc
(select * from bale2.transactot
where datefm = to_date(30/04/2017 00:00:00));
CREATE TABLE &table. as
Select * from connection to odbc
(select * from bale2.liaison
where datefm = to_date(30/04/2017 00:00:00));
disconnect from odbc;
run;
%mend Test;
%Test(table=credo_orac);
%Test(table=transactot_orac);
%Test(table= liaison_orac);*/ |