@PeterClemmensen wrote:
Like the other responders, I am unsure what you actually want to do and what fails.
The subject title however leads my mind to the implicit array, which can be created using other arrays. See a small example below.
data _null_;
array a a1-a5;
array b b1-b5;
array ab a b;
run;
This is interesting to me, but I could not get the above code to work like I expected it to. I found this on SASnrd.
data d;
array a (i) a1-a5 (1:5);
array b (i) b1-b5 (6:10);
array ab a b;
do over ab;
do i=1 to 5;
put ab=;
end;
end;
run;
Implicit Vs Explicit Array Explained in SAS - SASnrd