I modified the first part of the code because I think you meant to use COUNTW() instead of COUNT() I have attached a screenshot with some of the results, i was wondering if the idea here was to extract only one value into the polyMorph column according to the value of i. Would it be possible of instead of having one row per polymoprhism, you could have several columns for each polymorphism. data long;
set mydata;
id=_n_;
n_loop=countw(Pr_poly, ",");
do i=1 to n_loop;
polyMorph=scan(pr_poly, i, ',');
output;
end;
run;
... View more