Thanks for the answers!
sorry if I was not clear, I repeat my problem:
I Have this data set (TABLE) INFORMATION:
_N_ a1 a2 a3
1 1 2 3
2 12 14 15
where _N_ : is number of observation
a1 a2 a3 : are the fields
and in this Data Set I would like to have two array:
array b: 1 2 3
array c: 12 14 15
Kurtis, I Have followed your solution (with DO OVER), but it not works the retain:
data example;
array a a1-a3 _NUMERIC_;
array b b1-b3 _NUMERIC_;
array c c1-c3 _NUMERIC_;
retain b;
retain c;
set information;
if _N_ = 1 then do;
do over a ;
b=a;
end;
end;
if _N_ = 2 then do;
do over a ;
c=a;
end;
end;
do over b ;
put b;
end;
do over c;
put c;
end;
run;
The program running, but the retain it doesn't work. Moreover I can't access directly
to variable b(2) or c(3);
Have you an other solution?
Message was edited by: reone