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 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: kasa <venkatrkasa@GMAIL.COM>
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


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