[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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.