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=
Content-Type: text/plain; charset=ISO-8859-1
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:
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 <email@example.com> 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?
> Kevin M.