<?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 Reading specified Observations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21162#M4447</link>
    <description>I am having a dataset with 100 observations.&lt;BR /&gt;
I want to read only 5th,19th,21st records using data step and proc sql.&lt;BR /&gt;
How can I do this?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Siddhartha</description>
    <pubDate>Fri, 22 Oct 2010 23:24:25 GMT</pubDate>
    <dc:creator>Siddhartha</dc:creator>
    <dc:date>2010-10-22T23:24:25Z</dc:date>
    <item>
      <title>Reading specified Observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21162#M4447</link>
      <description>I am having a dataset with 100 observations.&lt;BR /&gt;
I want to read only 5th,19th,21st records using data step and proc sql.&lt;BR /&gt;
How can I do this?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Siddhartha</description>
      <pubDate>Fri, 22 Oct 2010 23:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21162#M4447</guid>
      <dc:creator>Siddhartha</dc:creator>
      <dc:date>2010-10-22T23:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading specified Observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21163#M4448</link>
      <description>data step:&lt;BR /&gt;
if _n_ in (5,19,21);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SQL:&lt;BR /&gt;
Using a data step you will first have to add a obsnum variable to your data set, i.e. obsnum=_n_;&lt;BR /&gt;
Then in the SQL you use: where obsnum in (5,19,21).&lt;BR /&gt;
&lt;BR /&gt;
Theoretically monotonic() could be used as well but Cynthia made in another tread a very clear point that this is an undocumented function which also has some known issues and as such should not be used at all.</description>
      <pubDate>Sat, 23 Oct 2010 00:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21163#M4448</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-10-23T00:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading specified Observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21164#M4449</link>
      <description>With the DATA step approach, review the SAS Language Dictionary DOC for using a SET with the POINT= parameter.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 23 Oct 2010 03:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-specified-Observations/m-p/21164#M4449</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-23T03:54:38Z</dc:date>
    </item>
  </channel>
</rss>

