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);*/ |
Partager