LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 9 Sep 2010 12:14:46 -0400
Reply-To:   Randall Powers <powers_r@BLS.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Randall Powers <powers_r@BLS.GOV>
Subject:   transposing observations to arrays

Hello All.

I have this dataset:

obs a b c d e f g h i 1 2 3 4 5 6 7

Hence, nine variables, seven observations.

What I'd like to end up with is a dataset with one observation containing nine arrays with the previous observation number as the array index. Hence,7*9=63 variables:

obs a1 a2 a3 a4 a5 a6 a7 b1 b2 b3....b7.....i7 1

How do I do this?

Thanks!


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