LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 1997, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 22 Apr 1997 16:19:05 -0400
Reply-To:   robertg@cus.cul.ca
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Robert Gil <robertg@CUS.CUL.CA>
Subject:   Re: need obs # as subject id
Comments:   To: "Karen L. Olson, Ph.D." <OLSON_K@A1.TCH.HARVARD.EDU>
In-Reply-To:   <B984ZWURO2QI3*/R=HUB/R=A1/U=OLSON_K/@MHS>
Content-Type:   TEXT/PLAIN; CHARSET=US-ASCII

Karen

If I understand your question well, you should do this in a data step

data new ; set yourdata; id=_n_ ; run ;

Good Luck

Robert Gil

On Tue, 22 Apr 1997 16:47:56 EST "Karen L. Olson, Ph.D." <OLSON_K@A1.TCH.HARVARD.EDU> wrote:

> I need to create some files with a subject id field and my original > data file does not have a field for this. So I can use the observation > # as an id, but how do I create this variable? I'm sure it's easy. > > Thanks, > > Karen Olson olson_k@a1.tch.harvard.edu > Children's Hospital > Boston, MA

----------------------

robertg@cus.cul.ca


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