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 (August 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 21 Aug 2009 12:12:52 -0400
Reply-To:     Joe Whitehurst <joewhitehurst@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Whitehurst <joewhitehurst@GMAIL.COM>
Subject:      Re: Observation Number for Row Accessed Using Key=
Comments: To: Kevin Myers <kmyers1@clearwire.net>
In-Reply-To:  <00CB5E1A25CC407FA5EF70B87FC7F2C9@KAM1720>
Content-Type: text/plain; charset=ISO-8859-1

Kevin, So many possibilities, so little time. This would be a completely trivial task if you are able to make your datastep a datastep view and execute it in a SAS Component Language program as was discussed ad nauseum last week on SAS-L. In addition to being able to store observation numbers in SCL Lists, you also would have available functions like:

NOTE

You can use note-id in the POINT function to return to the current row. (Use NOTE to mark a row, then use POINT to return to the row.) Each note-id is a unique numeric value. There can be up to 1,000 note-ids per open table.

To free the memory that is associated with a row ID, use DROPNOTE.

On Fri, Aug 21, 2009 at 11:55 AM, Kevin Myers <kmyers1@clearwire.net> wrote:

> In a complex data step, I am randomly accessing observations in a data set > by using a SET statement with the KEY= option. Depending on certain > criteria, I want to cache the observation numbers so that I can quickly > return to them later by using another SET statement, this time with the > POINT= option. How can I obtain the observation number for an observation > that has been read using a SET statement with the KEY= option? > > Thanks, > Kevin M. >


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