<?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 How does the data step  statement set  with point=v option works  when v has a 0 or negative value? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-the-data-step-statement-set-with-point-v-option-works/m-p/610357#M177735</link>
    <description>&lt;P&gt;run the following data step&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;p=-2;&lt;/P&gt;&lt;P&gt;set sashelp.class point=p;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;There is no error message and data step fall a dead loop!&amp;nbsp; I just wonder to where the pointer pointed&amp;nbsp; &amp;nbsp;when the value of p is negative and why&amp;nbsp; no error message in log window.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 00:17:30 GMT</pubDate>
    <dc:creator>Steve1964</dc:creator>
    <dc:date>2019-12-09T00:17:30Z</dc:date>
    <item>
      <title>How does the data step  statement set  with point=v option works  when v has a 0 or negative value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-the-data-step-statement-set-with-point-v-option-works/m-p/610357#M177735</link>
      <description>&lt;P&gt;run the following data step&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;p=-2;&lt;/P&gt;&lt;P&gt;set sashelp.class point=p;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;There is no error message and data step fall a dead loop!&amp;nbsp; I just wonder to where the pointer pointed&amp;nbsp; &amp;nbsp;when the value of p is negative and why&amp;nbsp; no error message in log window.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 00:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-the-data-step-statement-set-with-point-v-option-works/m-p/610357#M177735</guid>
      <dc:creator>Steve1964</dc:creator>
      <dc:date>2019-12-09T00:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How does the data step  statement set  with point=v option works  when v has a 0 or negative val</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-the-data-step-statement-set-with-point-v-option-works/m-p/610360#M177738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264961"&gt;@Steve1964&lt;/a&gt;&amp;nbsp; &amp;nbsp;The reason for infinite loop is because when point= option random direct access is used based on observation number, SAS can't find the "End of file" marker. Therefore you would need a STOP statement to end the datastep iteration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a STOP after the set statement and take a look at the log, you should see the invalid OBS No of point=var option triggering _ERROR_ =1 .&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 01:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-the-data-step-statement-set-with-point-v-option-works/m-p/610360#M177738</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-09T01:32:42Z</dc:date>
    </item>
  </channel>
</rss>

