@sas_newbie3 wrote:
Hi,
I want the result can be an arrary format, so I can retrieve the first element and second item etc.
So for example, for AA, it is an array. The first item of the array is A, the second item of array is A also.
Then go back to your orginal post and change the "example" data to what you actually want. Your example implied one record per two character concatenated string.
And your description would result in 32 values not 16:
A,A,A,B,A,C,A,D,B,A,B,B,B,C,B,D,C,A,C,B,C,C,C,D,D,A,D,B,D,C,D,D
data junk;
array x {32} $1.;
counter=0;
do i= 'A','B','C','D';
do j= 'A','B','C','D';
counter+1;
x[counter]=i ;
counter+1;
x[counter]=j ;
end;
end;
output;
drop counter i j;
run;
... View more