Hello,
I have a macro variable. I want to replace the apostrophes (') with the voids () but I have an error message. I don't know why and yet my code is perfect.
Can someone help me please. A proposal will also be welcome.
I apologize for not presenting a table. It's a macro program that I'm building but at this code level, I get this message 49 in the log.
Cordially,
Gick
%let list_debug = ADRESSE Adresse structure d'activité Catégorie PS Civilité Civilité d'exercice Nom prénom d'usage;
%let debug_code=%sysfunc(countw(&list_debug.));
%do d = 1 %to &debug_code.;
if index(%scan(&list_debug.,&d.," "),''') > 0 then %scan(&list_debug.,&d.) = tranwrd(%scan(&list_debug.,&d.),'''," ");
if index(%scan(&list_debug.,&d.),'&') > 0 then %scan(&list_debug.,&d.) = tranwrd(%scan(&list_debug.,&d.),'&',"et");
%end;
Gick
... View more