<?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: How to extract a new version of table in a library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479395#M123734</link>
    <description>What do you mean by extract?&lt;BR /&gt;What have you tried so far?&lt;BR /&gt;A starting point could be exploring SASHELP.VTABLE and try to build some macro logic.</description>
    <pubDate>Thu, 19 Jul 2018 06:39:15 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-07-19T06:39:15Z</dc:date>
    <item>
      <title>How to extract a new version of table in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479392#M123732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a library called &lt;STRONG&gt;datatime. &lt;/STRONG&gt;In this library i have a dataset names like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data_history_collection_01&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_02&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_06&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data_history_collection_07&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problem: every month the above table is generating with new version.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Solution:I need to extract the new version of dataset when ever its creates. that means recent dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 06:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479392#M123732</guid>
      <dc:creator>Pandu</dc:creator>
      <dc:date>2018-07-19T06:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a new version of table in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479395#M123734</link>
      <description>What do you mean by extract?&lt;BR /&gt;What have you tried so far?&lt;BR /&gt;A starting point could be exploring SASHELP.VTABLE and try to build some macro logic.</description>
      <pubDate>Thu, 19 Jul 2018 06:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479395#M123734</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-07-19T06:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a new version of table in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479406#M123739</link>
      <description>&lt;P&gt;Retrieve the last dataset name from dictionary.tables:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select max(memname) into :memname
from dictionary.tables
where libname = 'DATATIME';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After that, use &amp;amp;memname where needed.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 07:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-a-new-version-of-table-in-a-library/m-p/479406#M123739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-19T07:40:37Z</dc:date>
    </item>
  </channel>
</rss>

