Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > SAS > Macro
Macro Forum d'entraide sur le langage Macro de SAS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 09/11/2011, 10h33   #1
Candidat au titre de Membre du Club
 
Femme
Étudiant
Inscription : novembre 2011
Messages : 40
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : Alimentation

Informations forums :
Inscription : novembre 2011
Messages : 40
Points : 13
Points : 13
Par défaut "Warning" lors de l'éxecution d'une macro

Bonjour,

Je débute avec SAS et je viens de programme une macro que je n'arrive pas à exécuter.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
%MACRO EXtoZAZ (oldtab, newtab, ABC);
 
DATA &newtab;
SET &oldtab;
	ATTRIB ABC
		LABEL = "ABC"
		FORMAT = $12.
		LENGTH = $12;
	IF ABC = . THEN ABC = &ABC;
RUN;
 
%MEND;
Lorsque je lance ceci :
Code :
%EXtoZAZ (oldtab = TABLES.'Lio$'n, newtab = ZAZ.Lio, ABC = "Lio");
Le log me renvoit :
Code :
1
2
3
4
5
6
18   %EXtoZAZ(oldtab = TABLES.'Lio$'n, newtab = ZAZ.lio, ABC = "Lio");
     -
     180
WARNING: Apparent invocation of macro EXTOZAZ NOT resolved.
 
ERROR 180-322: Statement IS NOT valid OR it IS used out of proper ORDER.
Quelqu'un pourrait il m'aider ?

Merci !
Hélixe est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/11/2011, 10h38   #2
Membre Expert
 
Homme
Biostatisticien
Inscription : juin 2009
Messages : 1 147
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Irlande

Informations professionnelles :
Activité : Biostatisticien
Secteur : Industrie Pharmaceutique

Informations forums :
Inscription : juin 2009
Messages : 1 147
Points : 1 766
Points : 1 766
as tu compile le macro programme avant?

C'est a dire, lance

Code :
1
2
3
4
5
6
7
8
9
10
11
12
%MACRO EXtoZAZ (oldtab, newtab, ABC);
 
DATA &newtab;
SET &oldtab;
	ATTRIB ABC
		LABEL = "ABC"
		FORMAT = $12.
		LENGTH = $12;
	IF ABC = . THEN ABC = &ABC;
RUN;
 
%MEND;
avant

Code :
%EXtoZAZ (oldtab = TABLES.'Lio$'n, newtab = ZAZ.Lio, ABC = "Lio");
Manoutz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/11/2011, 10h38   #3
Modérateur
 
Homme Samir SELMANE
Consultant en Business Intelligence
Inscription : février 2011
Messages : 1 012
Détails du profil
Informations personnelles :
Nom : Homme Samir SELMANE
Localisation : France

Informations professionnelles :
Activité : Consultant en Business Intelligence
Secteur : Conseil

Informations forums :
Inscription : février 2011
Messages : 1 012
Points : 1 713
Points : 1 713
Hello;
Déjà , remplaces
Code :
1
2
 
 %EXtoZAZ(oldtab = TABLES.'Lio$'n, newtab = ZAZ.lio, ABC = "Lio");
par sa :
Code :
1
2
 
 %EXtoZAZ( TABLES.'Lio$'n,  ZAZ.lio, "Lio");
s_a_m est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/11/2011, 10h44   #4
Candidat au titre de Membre du Club
 
Femme
Étudiant
Inscription : novembre 2011
Messages : 40
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : Alimentation

Informations forums :
Inscription : novembre 2011
Messages : 40
Points : 13
Points : 13
Non effectivement, en lançant le macro-programme avant ça fonctionne.

Merci !
Hélixe est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/11/2011, 10h52   #5
Modérateur
 
Homme Samir SELMANE
Consultant en Business Intelligence
Inscription : février 2011
Messages : 1 012
Détails du profil
Informations personnelles :
Nom : Homme Samir SELMANE
Localisation : France

Informations professionnelles :
Activité : Consultant en Business Intelligence
Secteur : Conseil

Informations forums :
Inscription : février 2011
Messages : 1 012
Points : 1 713
Points : 1 713
???

t'as peut être lancer la macro avant de la compiler et c'est normal qu'il te renvoie le Message d'Erreur.

Mais bon si tu dis que c'est résolue, Bah tant mieux
s_a_m est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/11/2011, 10h53   #6
Membre Expert
 
Homme
Biostatisticien
Inscription : juin 2009
Messages : 1 147
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Irlande

Informations professionnelles :
Activité : Biostatisticien
Secteur : Industrie Pharmaceutique

Informations forums :
Inscription : juin 2009
Messages : 1 147
Points : 1 766
Points : 1 766
elle avait pas compile son macro programme apparemment.
Manoutz est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 10h27.


 
 
 
 
Partenaires

Hébergement Web