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 (April 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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!
Comments: To: barrere bendia <bendiabarre@ALTAVISTA.COM>
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 > > ____________________________________________________________________


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