| Date: | Thu, 18 Jun 2009 10:46:55 -0700 |
| Reply-To: | "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET> |
| Organization: | http://groups.google.com |
| Subject: | Re: Iteration of each row from a reference table of k-rows and
generate k-datasets |
|
| Content-Type: | text/plain; charset=ISO-8859-1 |
On Jun 17, 5:18 pm, JPG <frankle...@gmail.com> wrote:
>
> For some reason, the LEXCOMBI, LEXCOMB routine do not work on my PC
> SAS 9.1.3 service pak 4.
ALLCOMB should be available in in pre 9.2 installations.
------------------------------------
data one;
do rowid = 1 to comb(&n,&k);
array i(&n) (1:11);
array v(&k) $2;
call allcomb(rowid,&k,of i[*]);
do ix = 1 to &k;
v(ix) = repeat(byte(i(ix)+64),1);
end;
output;
end;
keep rowid v1-v4;
format _numeric_ 5.;
run;
------------------------------------
Richard A. DeVenezia
http://www.devenezia.com
|