Date: Thu, 6 Apr 2000 00:30:44 -0400
Reply-To: Foster Kerrison <foster@CYBERPORTAL.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Foster Kerrison <foster@CYBERPORTAL.NET>
Subject: Re: How to write a variable!
Content-Type: text/plain; charset=us-ascii
This should do it:
subj = _n_ ;
and then use the drop/keep statement as appropriate in the data step, or if
just printing to hard copy using noobs in the print statement.
i.e. proc print noobs ;
var subj time1-time4 ;
Foster Kerrison.
barrere bendia wrote:
> Hi.
> Can any one help?
>
> I have a data set like this
>
> OBS TIME1 TIME2 TIME3 TIME4
>
> 1 65 66 63 63
> 2 69 66 62 65
> 3 60 64 59 59
> 4 57 54 59 58
> 5 62 62 62 54
> 6 67 66 60 57
> 7 63 58 60 53
> 8 78 82 83 80
> 9 70 68 66 65
> 10 71 65 62 65
> 11 81 85 83 86
> 12 57 63 59 61
> I wante to create a variable wich takes the place of OBS i.e. I wante this:
>
> SUBJ TIME1 TIME2 TIME3 TIME4
>
> 1 65 66 63 63
> 2 69 66 62 65
> 3 60 64 59 59
> 4 57 54 59 58
> 5 62 62 62 54
> 6 67 66 60 57
> 7 63 58 60 53
> 8 78 82 83 80
> 9 70 68 66 65
> 10 71 65 62 65
> 11 81 85 83 86
> 12 57 63 59 61
> How to code this?
>
> Thanks.
>
> ____________________________________________________________________
>
> For the largest MP3 index on the Web, go to http://mp3.altavista.com
>
> ____________________________________________________________________
|