Bonjour tout le monde, j'ai un problème dans une macro que j'ai écrit; En effet il tourne parfaitement sans erreur;Sauf qu'il me créer les difféentes tables avec
les variables de la première table qu'elle crée;c'est à dire que la 1ère table CREDO_from_oracle a 909 lignes et 13 variables et toutes les autres tables aussi;
alors que normalement elle ne doivent pas contenir le même nbre de variables ni d'observations.
AIDEZ MOI S'il vous plait
voici mon code:
%macro Test(param=);
Options DBIDIRECTEXEC;
%put "créer les tables à partir de la base oracle";
proc sql ;
connect to odbc( datasrc="XXXXXX"
user=BIBU
password= F67TKX1LGJKKSJ72
readbuff=32767);
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.CREDOPOS a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.TRANSACTOT a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.liaisons a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.vendeurs a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.ACHETEURS a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
CREATE TABLE ¶m. as
Select * from connection to odbc
(select a.* from bale2.groupes a
where datefm = to_date(&ora_dt.,'dd/mm/yyyy'));
disconnect from odbc;
run;
%mend Test;
%Test(param=credo_from_oracle);
%Test(param=transactot_from_oracle);
%Test(param= liaison_from_oracle);
%Test(param=VENDEUR_from_oracle);
%TEST(param=Acheteur_from_oracle);
%TEST(param=GROUPES_ACH_from_oracle);
Partager