There's a business need to create a list of all possible 5-character length combinations of 24 capital letters and 8 numbers (leaving out I, O, 1 and 0). I have some basic code to create the list, using an array. However, when outputting to the table, I'm only seeing the output of the first character of the string: I'm looking for: X count AAAAA 1 AAAAB 2 AAAAC 3 .... 99997 33554430 99998 33554431 99999 33554432 And what I'm getting is X count A 1 A 2 A 3 .... 9 33554430 9 33554431 9 33554432 This is my code: data x; length x $5.; ct=0; Array a{32} $32 ('A','B','C','D','E','F','G','H','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z', '2','3','4','5','6','7','8','9'); do c1=1 to 32; do c2=1 to 32; do c3=1 to 32; do c4=1 to 32; do c5=1 to 32; x=cat(a[c1],a[c2],a[c3],a[c4],a[c5]); ct=ct+1; output; end; end; end; end; end; drop a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 c1 c2 c3 c4 c5; run;
... View more