Date: Wed, 14 Feb 2001 11:54:46 -0700
Reply-To: "Garnett P. McMillan" <gnet@UNM.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Garnett P. McMillan" <gnet@UNM.EDU>
Organization: University of New Mexico, Albuquerque
Subject: Combinations of elements from a string
Content-Type: text/plain; charset=us-ascii
Suppose I define a macro variable:
%LET X = x1 x2 x3 z1;
How can I generate a set of macro variables, each of which describes a
particular combination of the elements from X?
VAR1 = x1,
VAR2 = x1 x3,
VAR3 = x1 z1,
VAR4 = x2 x3,
and so on until I have all possible combinations identified by
individual macro variables.
Is this possible?
Thanks very much in advance,