| 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 |
|
| 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
|