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 (December 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 21 Dec 2004 16:42:40 -0800
Reply-To:   Nageswar Rao Punnani <npunnani@gmail.com>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nageswar Rao Punnani <npunnani@GMAIL.COM>
Subject:   proc transpose - duplicate id values
Content-Type:   text/plain; charset=US-ASCII

Hi all ,

I have sorted my data set with the by variables and then tried to transpose within the by group with the id variable. But the problem is in my data set , within the same by group i have duplicate id variable values and proc transpose is ignoring those observations . Is there a way to get around this .. any help is greatly appreciated.

this is the code i wrote :

proc transpose data = desktop.hosp_nonmissing1 out = work.hosp_nonmissingt prefix = code let; by patient_id hosp_adm_date hosp_disch_date; var diag_code ; id diag_code_number; run;

log report : The ID value "code1" occurs twice in the same BY group

sample observations where proc transpose is giving the error : id date1 date2 diag_code_number 12345 11/23/2004 12/23/2004 1 12345 11/23/2004 12/23/2004 1 12345 11/23/2004 12/23/2004 2 12345 11/23/2004 12/23/2004 3

thanks in advance,

Rao.


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