Dear SAS Macro Guru's This is a known issue at our R&D. It is unclear when this will be fixed. Until then, you need to use a new Macro-Variable for the %to value. regards Karl-Heinz
%macro split_terms;
%let terms = %str(This is a term; This is another term, with a comma; And this is a third term) ;
%let NUMBER=%sysfunc(countw(&terms, %str(%;))) ;
%do i = 1 %to &Number;
%put %scan(&terms, &i, %str(%;));
%end;
%mend;
%split_terms;
... View more