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 (June 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 11 Jun 1997 05:29:23 GMT
Reply-To:   David Michael Wright <david@CATS.UCSC.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   David Michael Wright <david@CATS.UCSC.EDU>
Organization:   University of California, Santa Cruz
Subject:   Re: Match Merging without SQL

It was suggested by a number of posters to use Proc Transpose with a Tom Abernathy <tga1@columbia.edu> explained:

Did you look at PROC TRANSPOSE? One nice feature for this problem of proc transpose is that it will make the variable names from the value of a column. You will need to add a dummy column to put in the VAR statement for PROC TRANSPOSE. And your resulting matrix will most likely have missings where you seem to want zeros.

NAME TEST DUMMY John AA 1 John AB 1 Sam AA 1 Sam AC 1

PROC TRANSPOSE data=in out=out ; BY NAME; ID TEST; VAR DUMMY; RUN;

NAME AA AB AC John 1 1 . Sam 1 . 1

Good Luck,

- Tom Abernathy (tga1@columbia.edu)


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