<?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: POINT= option.   Why does it need a variable? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213404#M52633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right - refer to the documentation for the correct use of each option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 05:32:41 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-06-25T05:32:41Z</dc:date>
    <item>
      <title>POINT= option.   Why does it need a variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213401#M52630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a quick look, but couldn't find any questions similar to this, so hopefully I'm not bringing up old questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reason the the POINT= option only works when set to a set to equal a variable (eg the obsnum below), rather than just setting it to equal an integer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg why does this work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data OJOSData;&lt;/P&gt;&lt;P&gt;&amp;nbsp; obsnum=6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set grades point=obsnum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data OJOSData;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set grades point=6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering what the underlying reason is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PS the SAS University software is a godsend for testing things like this that puzzle me&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 01:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213401#M52630</guid>
      <dc:creator>Oliver2</dc:creator>
      <dc:date>2015-06-25T01:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: POINT= option.   Why does it need a variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213402#M52631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are already options for reading a specific observation or range of observations. FIRSTOBS= for the first record to be read and OBS= for the last record to be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POINT= is for identifying observations by formula/calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (firstobs = 6 obs = 6);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 01:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213402#M52631</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-06-25T01:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: POINT= option.   Why does it need a variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213403#M52632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right!&amp;nbsp; It's interesting isn't it how certain rules work in certain ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With POINT you HAVE to use a variable, but with firstobs you CANNOT use a variable.&amp;nbsp; At least I can't make it work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data OJOSData;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fobs=7;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set grades (firstobs=fobs);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks SASKiwi, something for me to think about!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 05:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213403#M52632</guid>
      <dc:creator>Oliver2</dc:creator>
      <dc:date>2015-06-25T05:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: POINT= option.   Why does it need a variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213404#M52633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right - refer to the documentation for the correct use of each option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 05:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213404#M52633</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-06-25T05:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: POINT= option.   Why does it need a variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213405#M52634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;obs= and firstobs= dataset options are designed to subset the data before it reaches the data step or a procedure. As they are data set options, they work almost in any circumstances. For example in a proc step. Obviously you don't have data step variables in a proc step.&amp;nbsp; obs= and&amp;nbsp; firstobs= can subset the observations very efficiently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;point= works only in a data step, it is an option of the set statement. It is designed to allow random/direct access to specific observations.&lt;/P&gt;&lt;P&gt;For example if you want to read the 10th, 20th and than again the 10th observation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/POINT-option-Why-does-it-need-a-variable/m-p/213405#M52634</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-06-30T13:15:08Z</dc:date>
    </item>
  </channel>
</rss>

