THANKS ALL, Unfortunately these solutions didn't work for me, the solution that did work is posted below. @Cynthia_sas your solution allowed my variables to come in correctly, but I wasn't able to get the observations. Nevertheless, I wrote my own data step that is working. there may be a more efficient way of coding - but this works just fine so far 🙂 data do_&appname; set &folder; RACFID = scan(f1,1,","); 'Full name'n = scan(f1,2,","); Server = scan(f1,4,","); KFA = scan(f1,5,","); x=countw(kfa,"|"); do i = 1 to x; x1=scan(kfa,i,"|"); Privilege = catx("-",scan(f1,3,","),scan(f1,4,","),x1); drop i x; output; end; run;
... View more