So assuming that the ptnm and stdt gets split on commas, you could do something like this:
/* UNTESTED CODE */
data want;
set have;
record=1;
do while (not missing(scan(ptnm,record,',')));
ptnm_new=scan(ptnm,record,',');
stdt_new=scan(stdt,record,',');
record=record+1;
output;
end;
drop record ptnm stdt;
run;
So assuming that the ptnm and stdt gets split on commas, you could do something like this:
/* UNTESTED CODE */
data want;
set have;
record=1;
do while (not missing(scan(ptnm,record,',')));
ptnm_new=scan(ptnm,record,',');
stdt_new=scan(stdt,record,',');
record=record+1;
output;
end;
drop record ptnm stdt;
run;
Yes, I was! But that has been corrected now. Thanks!
-- Paige Miller
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!