| Date: | Mon, 22 Jun 2009 10:41:26 -0400 |
| Reply-To: | Croghan.Carry@EPAMAIL.EPA.GOV |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Carry Croghan <Croghan.Carry@EPAMAIL.EPA.GOV> |
| Subject: | Re: please help me do in a simple way instead of using several
data steps |
|
| In-Reply-To: | <200906221417.n5MAlKG4010545@malibu.cc.uga.edu> |
| Content-type: | text/plain; charset=US-ASCII |
|---|
you need to just use the transpose procedure to get what you want. (as
long as all your variables are of the same type).
proc transpose data=have out =needed;
by subj;
var pulse temp height weight;
run;
Carry W. Croghan
Database Manager
EPA\ORD\NERL\HEASD
RTP, NC
From: kasa <venkatrkasa@GMAIL.COM>
To: SAS-L@LISTSERV.UGA.EDU
Date: 06/22/2009 10:17 AM
Subject: please help me do in a simple way instead of using several data
steps
Currently i am using several data steps in order to derive needed data
set.
can you please help me to do it efficiently.
data have
subj pulse temp height weight
101 64 36 174 68
102 67 36.4 182 72
data needed
subj newvar newval
101 pulse 64
101 temp 36
101 height 174
101 weight 68
102 pulse 67
102 temp 36.4
102 height 182
102 weight 72
|