<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Observation Pointers / Table Vector after a REMOVE statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62068#M17615</link>
    <description>Hello PHK,&lt;BR /&gt;
&lt;BR /&gt;
What do you want to achieve? If you want to simply renumber you accounts after deleting it is very easy to achieve using n+1 statement. Or you need something else?&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
    <pubDate>Wed, 04 May 2011 17:34:43 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2011-05-04T17:34:43Z</dc:date>
    <item>
      <title>Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62067#M17614</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need help with the following:&lt;BR /&gt;
In the SAS Help files, I got the code:&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
   input AcctNumber Credit;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
1001 1500&lt;BR /&gt;
1002 4900&lt;BR /&gt;
1003 3000&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
   modify accounts;&lt;BR /&gt;
   if AcctNumber=1002 then remove;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOW I ADDED THE CODE:&lt;BR /&gt;
&lt;BR /&gt;
data accounts2;&lt;BR /&gt;
   input AcctNumber Credit;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
1004 3800&lt;BR /&gt;
1005 9200&lt;BR /&gt;
;&lt;BR /&gt;
proc append base = accounts data = accounts2; run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
THE OBSERVATION NUMBERS IN THE TABLE accounts ARE 1,3,4,5.  THIS IS NOT WHAT I DESIRE TO HAVE; I WANT TO HAVE: 1,2,3,4.&lt;BR /&gt;
&lt;BR /&gt;
NOW, IF I USE THE POINT= FUNCTION AS FOLLOWS:&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
 do n = 1 to 5;&lt;BR /&gt;
   set accounts point = n; output;&lt;BR /&gt;
 end;&lt;BR /&gt;
 stop;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
THERE IS STILL AN OBSERVATION 2, BUT ALSO AN OBSERVATION 5.&lt;BR /&gt;
&lt;BR /&gt;
IS THERE ANY WAY TO CORRECT THE TABLE VECTOR AFTER A REMOVE STATEMENT?</description>
      <pubDate>Wed, 04 May 2011 13:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62067#M17614</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-04T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62068#M17615</link>
      <description>Hello PHK,&lt;BR /&gt;
&lt;BR /&gt;
What do you want to achieve? If you want to simply renumber you accounts after deleting it is very easy to achieve using n+1 statement. Or you need something else?&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 04 May 2011 17:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62068#M17615</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-05-04T17:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62069#M17616</link>
      <description>You delte 2 ,so it will not appear any more.&lt;BR /&gt;
&lt;B&gt;if AcctNumber=1002 then remove;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
So,change&lt;BR /&gt;
&lt;BR /&gt;
data accounts2;&lt;BR /&gt;
modify accounts2;&lt;BR /&gt;
if AcctNumber=1005 then remove;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 05 May 2011 03:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62069#M17616</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-05T03:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62070#M17617</link>
      <description>Hi SPR,&lt;BR /&gt;
&lt;BR /&gt;
I don't really understand how the n+1 statement could be used to solve the problem, for I don't really want to add a variable n in the dataset. (Or how does one use the n+1 statement without creating a variable named "n"?)  My problem is that, whereas the final dataset has only 4 observations, SAS somehow has a reference to 5 observations (as illustrated by the last piece of code).&lt;BR /&gt;
&lt;BR /&gt;
The example provided is only an illustration of the problem.  Actually I am working with a large dataset, from which I remove the last 5% or so of the data.  I then add new data using PROC APPEND, because I don't want to rewrite all the data in the original dataset.  Afterwards, I am using a custom binary search using the POINT = statement.  But this is exactly where the problem comes in that is illustrated by the example.&lt;BR /&gt;
&lt;BR /&gt;
The problem, as in the example, is that when the second observation is removed from the first dataset, if you open the table in SAS Viewer, the row numbers of the remaining to records are 1 and 3, and not 1 and 2 as one would have expected.  And when using the POINT = statement, it corresponds to what you see in the SAS Viewer: there still are row number references to 3 observations.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
PHK</description>
      <pubDate>Thu, 05 May 2011 04:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62070#M17617</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T04:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62071#M17618</link>
      <description>Sorry, I don't understand how this will solve the problem: I don't want to remove the observation in which AcctNumber=1005.  I need the row number references (or table vector or whatever it is called) of the final accounts-table to be 1, 2, 3, 4 rather than: 1,2,4,5.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
PHK</description>
      <pubDate>Thu, 05 May 2011 05:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62071#M17618</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T05:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62072#M17619</link>
      <description>Oh.I understand what you mean.It is very interesting which i have never imaged.&lt;BR /&gt;
Then you need this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data accounts;&lt;BR /&gt;
input AcctNumber Credit;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1001 1500&lt;BR /&gt;
1002 4900&lt;BR /&gt;
1003 3000&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
 set accounts;&lt;BR /&gt;
if AcctNumber=1002 then delete;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 05 May 2011 05:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62072#M17619</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-05T05:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62073#M17620</link>
      <description>Hi Ksharp,&lt;BR /&gt;
&lt;BR /&gt;
Thank you.  But as far as I know, the code that you are suggesting:&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
  set accounts;&lt;BR /&gt;
  if AcctNumber=1002 then delete;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
... rewrites the accounts table (due to the SET statement).  I know that the code you are suggesting will work, but my problem is that I have a fairly large dataset and I only want to remove the last part (about 5%) of the dataset.  If I use the delete statement with the set statement, the other 95% of the data still gets rewritten (is that not so?) - and that is what I want to avoid, but without getting the observation references mixed up.&lt;BR /&gt;
&lt;BR /&gt;
By the way:&lt;BR /&gt;
My problem is also illustrated (but not even mentioned or addressed) on:&lt;BR /&gt;
&lt;A href="http://v8doc.sas.com/sashtml/lgref/z0202648.htm" target="_blank"&gt;http://v8doc.sas.com/sashtml/lgref/z0202648.htm&lt;/A&gt;&lt;BR /&gt;
See the output of the PROC PRINT: there is an observation 1 and 3, and not 1 and 2.</description>
      <pubDate>Thu, 05 May 2011 05:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62073#M17620</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62074#M17621</link>
      <description>((... I was wondering whether this in any way relates to what is called a "rollback segment" in IT jargon?))</description>
      <pubDate>Thu, 05 May 2011 06:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62074#M17621</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T06:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62075#M17622</link>
      <description>SQL ALTERNATIVES SEEM TO FAIL AS WELL:&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
   input AcctNumber Credit;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
1001 1500&lt;BR /&gt;
1002 4900&lt;BR /&gt;
1003 3000&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
   delete from accounts&lt;BR /&gt;
      where AcctNumber=1002;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
... SAME PROBLEM, AS ALSO INDICATED BY:&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
	do n = 1 to 3;&lt;BR /&gt;
	   set accounts point = n; output;&lt;BR /&gt;
	end;&lt;BR /&gt;
	stop;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
----&lt;BR /&gt;
proc sql;&lt;BR /&gt;
   delete from accounts&lt;BR /&gt;
      where MONOTONIC()=2;&lt;BR /&gt;
quit;&lt;BR /&gt;
... ALSO DOES NOT WORK</description>
      <pubDate>Thu, 05 May 2011 06:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62075#M17622</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62076#M17623</link>
      <description>Closest I could get to resolving the problem thus far:&lt;BR /&gt;
&lt;BR /&gt;
There is something like a PURGE statement, which seems to renumber records.&lt;BR /&gt;
The only problem is: the statement is used in PROC IML&lt;BR /&gt;
(http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/langref_sect207.htm) and we do not have PROC IML.&lt;BR /&gt;
&lt;BR /&gt;
The function can also be used elsewhere:&lt;BR /&gt;
(http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/worksasdatasets_sect16.htm).&lt;BR /&gt;
&lt;BR /&gt;
However, I can see no where that it can be used in a datastep without the SET statement or in PROC SQL.

Message was edited by: PHK</description>
      <pubDate>Thu, 05 May 2011 08:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62076#M17623</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-05T08:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62077#M17624</link>
      <description>When you MODIFY a data set and REMOVE an obs the record is not physically removed but somehow internally flagged as being deleted.  &lt;BR /&gt;
&lt;BR /&gt;
When reading a SAS  data set using direct access with SET and the POINT option when you point to a REMOVED record the SET fails and sets _ERROR_ = 1.   The NOBS option gives the “physical” record count which includes any REMOVED records.  You can detect the removed records by examination of _ERROR_ and take appropriate action.  Note also that when SET fails for a REMOVED record the variables being read by the SET statement will retain the values from the last successful SET.&lt;BR /&gt;
&lt;BR /&gt;
I don’t know if this will help you or not.  If you explain in detail what you need to do with the data with removed records perhaps someone can help you.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data accounts;&lt;BR /&gt;
   input AcctNumber Credit @@; &lt;BR /&gt;
   datalines;&lt;BR /&gt;
1001 1500 1002 4900 1003 3000&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
data accounts;&lt;BR /&gt;
   modify accounts;&lt;BR /&gt;
   if AcctNumber=1002 then remove;&lt;BR /&gt;
   run;&lt;BR /&gt;
data accounts2;&lt;BR /&gt;
   input AcctNumber Credit @@;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
1004 3800 1005 9200&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc append base = accounts data = accounts2; &lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   do point = 1 to nobs;&lt;BR /&gt;
      _error_ = 0;&lt;BR /&gt;
      set accounts point=point nobs=nobs;&lt;BR /&gt;
      if _error_ eq 1 then do;&lt;BR /&gt;
         put 'NOTE: OBS ' point 'is not Accessible';&lt;BR /&gt;
         call missing(of _all_);&lt;BR /&gt;
         end;&lt;BR /&gt;
      put _all_;&lt;BR /&gt;
      end;&lt;BR /&gt;
   stop;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 05 May 2011 15:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62077#M17624</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-05-05T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62078#M17625</link>
      <description>Hey.I found very useful options,SAS is genius.&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;B&gt;options compress=yes reuse=yes;&lt;/B&gt;&lt;BR /&gt;
data accounts;&lt;BR /&gt;
input AcctNumber Credit;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1001 1500&lt;BR /&gt;
1002 4900&lt;BR /&gt;
1003 3000&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
modify accounts;&lt;BR /&gt;
if AcctNumber=1002 then remove;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data accounts2;&lt;BR /&gt;
input AcctNumber Credit;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1004 3800&lt;BR /&gt;
1005 9200&lt;BR /&gt;
;&lt;BR /&gt;
proc append base = accounts data = accounts2; run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Or You can code like this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
data accounts(compress=yes reuse=yes);&lt;BR /&gt;
input AcctNumber Credit;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1001 1500&lt;BR /&gt;
1002 4900&lt;BR /&gt;
1003 3000&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
data accounts;&lt;BR /&gt;
modify accounts;&lt;BR /&gt;
if AcctNumber=1002 then remove;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data accounts2;&lt;BR /&gt;
input AcctNumber Credit;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1004 3800&lt;BR /&gt;
1005 9200&lt;BR /&gt;
;&lt;BR /&gt;
proc append base = accounts data = accounts2; run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 06 May 2011 00:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62078#M17625</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-06T00:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62079#M17626</link>
      <description>Thank you, this is useful information, even though I won't be able to make use of it in what I need to do.</description>
      <pubDate>Fri, 06 May 2011 05:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62079#M17626</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-06T05:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62080#M17627</link>
      <description>Brilliant! Thanks! This seems to solve the problem in a very simple way!</description>
      <pubDate>Fri, 06 May 2011 05:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62080#M17627</guid>
      <dc:creator>PHK</dc:creator>
      <dc:date>2011-05-06T05:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62081#M17628</link>
      <description>But the condition is that your large dataset must be compressed firstly.</description>
      <pubDate>Fri, 06 May 2011 07:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62081#M17628</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-06T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62082#M17629</link>
      <description>You haven't full explained what you "need to do".</description>
      <pubDate>Fri, 06 May 2011 11:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62082#M17629</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-05-06T11:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62083#M17630</link>
      <description>The compress options renders the POINT option useless so how can this help?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ERROR: The POINT= data set option is not valid for the data set WORK.ACCOUNTS, the data set must be accessible by observation number for POINT=processing.&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 06 May 2011 11:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62083#M17630</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-05-06T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62084#M17631</link>
      <description>Yes.&lt;BR /&gt;
You are right.I overlooked this part in documentation.&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 09 May 2011 00:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62084#M17631</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-09T00:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Observation Pointers / Table Vector after a REMOVE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62085#M17632</link>
      <description>PHK&lt;BR /&gt;
the answer to the final question in your original post in this thread is probably NO. &lt;BR /&gt;
Since you do not want to re-write the whole file when you "delete" a row these rows remain in the file and are marked as deleted. You seek to have a number running sequentially through the data skipping over and not counting deleted rows? Then you will need to maintain that column because SAS does not. &lt;BR /&gt;
You seek a pointer into the data providing direct access by something like row number? Then this service needs to accept the presence of those rows you deleted ( but did not re-write the file to remove). This is the row number you want to consider "wrong"! (and what POINT= accesses)&lt;BR /&gt;
I think you have to work with SAS as it is written - not the way you think it should!&lt;BR /&gt;
You might find there is a flaw in your concept that requires the SAS approach - which I think&lt;BR /&gt;
 applies here. &lt;BR /&gt;
 &lt;BR /&gt;
Regards&lt;BR /&gt;
peterC

slp chkc&lt;BR /&gt;
(and what POINT= accesses)  edit by: Peter.C 14:00 BST</description>
      <pubDate>Mon, 09 May 2011 10:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Observation-Pointers-Table-Vector-after-a-REMOVE-statement/m-p/62085#M17632</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-05-09T10:11:27Z</dc:date>
    </item>
  </channel>
</rss>

