<?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: Keeping columns for the last 12 months in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618997#M35417</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;keep month1810--month199 /* add other variables you want to keep as well */;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in a SAS data step will get you there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I point out that this is a very poor arrangement of the data for most purposes, and you'd be much better off (for most purposes) with a long data set rather than a wide data set.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 22:45:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-21T22:45:37Z</dc:date>
    <item>
      <title>Keeping columns for the last 12 months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618964#M35416</link>
      <description>&lt;P&gt;I have a data set where the Columns are labeled Month181, month182 , month183, .............., month1810 ,&amp;nbsp;month1811,&amp;nbsp;month1812,&amp;nbsp;month191,&amp;nbsp;month192&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to select the last 12&amp;nbsp; months for example i want the cols Month1810 to Month199&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Month1810&amp;nbsp; &amp;nbsp; Month1811&amp;nbsp; month1812&amp;nbsp; &amp;nbsp;month191&amp;nbsp; month192&amp;nbsp; &amp;nbsp;month193&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 21:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618964#M35416</guid>
      <dc:creator>hk2013</dc:creator>
      <dc:date>2020-01-21T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping columns for the last 12 months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618997#M35417</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;keep month1810--month199 /* add other variables you want to keep as well */;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in a SAS data step will get you there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I point out that this is a very poor arrangement of the data for most purposes, and you'd be much better off (for most purposes) with a long data set rather than a wide data set.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 22:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618997#M35417</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-21T22:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping columns for the last 12 months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618999#M35418</link>
      <description>If you'd used 1801, 1802, 1803 etc it would have been easier. Is this structure the original structure of the data? If not, if you every have it in a long structure, it's much easier to work with in that structure.</description>
      <pubDate>Tue, 21 Jan 2020 23:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/618999#M35418</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-21T23:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping columns for the last 12 months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/619004#M35419</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why don't you convert your file into Excel and then delete the observations you don't need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 23:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/619004#M35419</guid>
      <dc:creator>imadjabir</dc:creator>
      <dc:date>2020-01-21T23:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping columns for the last 12 months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/619025#M35420</link>
      <description>Most likely because that's a manual solution that doesn't scale when you do it every month and multiple times. It allows the room for errors to be introduced.</description>
      <pubDate>Wed, 22 Jan 2020 03:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Keeping-columns-for-the-last-12-months/m-p/619025#M35420</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-22T03:13:03Z</dc:date>
    </item>
  </channel>
</rss>

