[pre]
data temp;
input a $ b $ c $ d $ e f g h $;
cards;
a b ccc d 1000 2000 1500 x
e f ggg k 3000 4000 7000 y
;
run;
data result;
set temp;
array x{*} e--g;
do i=1 to dim(x);
_x=x{i};_h=cats(h,i);
output;
end;
drop i e--g h;
run;
[/pre]
Ksharp
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.