Date: Fri, 21 Jun 2002 11:13:51 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Matthew Ness <MNess@CROMEDICA.COM>
Subject: Re: Using Variable Values in New Variables Names
Content-type: text/plain; charset=us-ascii
It's a little tough to help you without having a more detailed example or
knowing exactly what you want, but proc transpose has an id statement that
will use values of a variable as names for the new, transposed variables.
proc transpose data=test out=trans (drop=_:) prefix=y;
Perhaps that may put you on the right track...
<JBalint@ALLDA To: SAS-L@LISTSERV.UGA.EDU
Sent by: Subject: Using Variable Values in New
"SAS(r) Variables Names
I tried this:
x = 1;
y&x = 2;
But that doesn't work. Could somebody point me in the right direction here?
I have values in a dataset that I am trying to transforms and don't feel
like writing a page full of if statements. Thanks.