<?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 Create Smaller DATA Tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-Smaller-DATA-Tables/m-p/512836#M138150</link>
    <description>&lt;P&gt;I have a data set that is currently a 3 by 160 table of movie reviews. The first row is numbers for the movie reviews. I want to separate the table in to 4 smaller tables with values 1-40 in the first table, 41-80 for the second table, etc. I also want to drop the first column of numbers from these tables. This is the code I am trying for the first table but it is not working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA movie;&lt;BR /&gt;FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/moviereview.txt';&lt;BR /&gt;INFILE webpage;&lt;BR /&gt;INPUT reviewnumber $ Siskel $ Ebert $;&lt;BR /&gt;DROP reviewnumber&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=movie;&lt;BR /&gt;WHERE reviewnumber  CONTAINS BETWEEN 1 AND 40;&lt;BR /&gt;TITLE 'Quarter 1';&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 05:00:42 GMT</pubDate>
    <dc:creator>Steelersgirl</dc:creator>
    <dc:date>2018-11-14T05:00:42Z</dc:date>
    <item>
      <title>Create Smaller DATA Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Smaller-DATA-Tables/m-p/512836#M138150</link>
      <description>&lt;P&gt;I have a data set that is currently a 3 by 160 table of movie reviews. The first row is numbers for the movie reviews. I want to separate the table in to 4 smaller tables with values 1-40 in the first table, 41-80 for the second table, etc. I also want to drop the first column of numbers from these tables. This is the code I am trying for the first table but it is not working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA movie;&lt;BR /&gt;FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/moviereview.txt';&lt;BR /&gt;INFILE webpage;&lt;BR /&gt;INPUT reviewnumber $ Siskel $ Ebert $;&lt;BR /&gt;DROP reviewnumber&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=movie;&lt;BR /&gt;WHERE reviewnumber  CONTAINS BETWEEN 1 AND 40;&lt;BR /&gt;TITLE 'Quarter 1';&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 05:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Smaller-DATA-Tables/m-p/512836#M138150</guid>
      <dc:creator>Steelersgirl</dc:creator>
      <dc:date>2018-11-14T05:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Smaller DATA Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Smaller-DATA-Tables/m-p/512842#M138155</link>
      <description>&lt;P&gt;1) Can reviewnumber be non numeric ? why not read it as numeric, without the $ symbol ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Assume reviewnumber is 1 - is it '1 ' or '01' or ' 1' ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Assume reviewnumber is 12 - does it contain 1 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that changing the reviewnumber to numeric and check by&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;" where reviewnumber between 1 and 40 "&amp;nbsp; instead using contain function - can solve the issue&lt;/P&gt;
&lt;P&gt;otherwise post your log and explain what do you mean by "not working".&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 05:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Smaller-DATA-Tables/m-p/512842#M138155</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-11-14T05:46:39Z</dc:date>
    </item>
  </channel>
</rss>

