Hi @Kyojik
I have automatize the process in case you have several rows. Please try it if relevant.
I cannot help you more without datalines to figure out what is the issue.
Bst,
proc sql noprint;
select max(countw(compress(Inst_single_PCT,' ()','A'),";")) into:max_nb from Inst_single_PCT;
quit;
data want;
set Inst_single_PCT;
array owner(&max_nb);
do i= 1 to countw(compress(Inst_single_PCT,' ()','A'),";");
Owner(i) = scan(compress(Inst_single_PCT,' ()','A'),i,";");
end;
drop i;
run;
... View more