Bonjour,
Je dispose d'une table qui comporte plusieurs labels contenant les chaines de caractères "Valeur au format texte" ou "Valeur au format numérique" que j'aimerais remplacer car mes labels doivent être anglais.
J'ai tenté les étapes ci-dessous mais ça ne fonctionne pas :
proc sql noprint;
select tranwrd (label,"Valeur au format texte","Text format") into :label separated by ' ' from SASHELP.VCOLUMN where memname = 'AE' and libname ="LIB";
select name into :name separated by ' ' from SASHELP.VCOLUMN where memname = 'AE' and libname ="LIB";
select count (name) into :nb from SASHELP.VCOLUMN where memname = 'AE' and libname ="LIB";
quit;
%put &label;
%put &name;
%put &nb;
data lib.AE;
set lib.AE;
%do i=1 %to &nb;
%label &name&i = &label&i;
end;
run;
Mais ça ne fonctionne pas et j'ai beau chercher une autre solution, je ne trouve pas.
Pourriez-vous m'aider s'il vous plait ?
Bien cordialement.
Partager