LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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

Greetings all!!

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?

For example, 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, Garnett


Back to: Top of message | Previous page | Main SAS-L page