Date: Tue, 8 Nov 2005 20:41:26 +0000
Reply-To: iw1junk@COMCAST.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <iw1junk@COMCAST.NET>
Subject: Change variables to variable names
Jato,
You aren't going to get much help until you show how the array is related to the data that you have.
For example you might have something like
data w ; array v (4) _temporary_ $ 32 ( "id" "name" "gender" "phonenumber" ) ; input ( f1 - f4 ) ($) ; cards ; x y z a ; but I wouldn't want to work on a guess, since you could have something very different, and I suspect that many others will also wait until they know what the problem is.
Ian Whitlock===============
Date: Tue, 8 Nov 2005 00:44:27 -0800
Reply-To: jato <jato88@GMAIL.COM>
Sender: "SAS(r) Discussion"
From: jato <jato88@GMAIL.COM>
Organization: http://groups.google.com
Subject: Change variables to variable names
Comments: To: sas-l
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I have an arry which has 90 values in it, the values are something like
ID, Name, Gender, PhoneNumber.........
What I want to do is to use these values as variable names/column names
when I create new dataset. This new dataset should be something like
the following:
ID Name Gender PhoneNumber ..........
x y z a
There should be some easy ways to do it than hardcoding, but I just
can't figure it out myself. Please help.
Thanks a lot.
|