Hello, I want to change the special characters using this code. It's remain to define the size of observation. the function length does not work could you, please, help me? %macro tt();
data test1;
set test;
%do i=1 %to %sysfunc(length(var));
lettre=substr(var,&i.,1);
type=indexc(lettre,'3A3B3C'x);
if type then do; substr(var,&i.,1)=translate(lettre,'414243'x,'3A3B3C'x);
end;
else do; substr(var,&i.,1)=lettre;
end;
%end;
run;
%mend;
%tt; Whith this method, the code work correctely data test1;
set test;
var1=translate(var,'ABC','3A3B3C'x);
run; NB: these are tests that I do for myself Thank you
... View more