<?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: Change all table names in Work library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749903#M235759</link>
    <description>&lt;P&gt;I was going to suggest this too. I make TLFs for a large CRO and we use proc compare. We just save the QC tables in another directory separate from the production side.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 16:11:55 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2021-06-23T16:11:55Z</dc:date>
    <item>
      <title>Change all table names in Work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749885#M235752</link>
      <description>&lt;P&gt;I have created a macro to replace a script. In order to check that the tables produced by the macro / script respectively are identical (with proc compare), I would need the capability to change all the names in the work library by for instance adding a letter.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Running the script yields:&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Table1 [Would like to change this table name to:] Table1_A&lt;/P&gt;
&lt;P&gt;Table2&amp;nbsp;[Would like to change this table name to:] Table2_A&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Running the Macro yields:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Table1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table2&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Since I changed the names the two tables won't be overwritten and I can use proc compare without trouble.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the real example, my script produces like 15 tables so would be nice with a "Automatic" solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749885#M235752</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-06-23T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change all table names in Work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749886#M235753</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-rename-all-datasets-in-a-library-at-once/td-p/553996" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-rename-all-datasets-in-a-library-at-once/td-p/553996&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Try this.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749886#M235753</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-06-23T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change all table names in Work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749892#M235757</link>
      <description>&lt;P&gt;Why make life this difficult?&amp;nbsp; Use PROC COPY to copy the existing tables to a different library.&amp;nbsp; When you use PROC COMPARE, you can compare a table in the WORK library with a table of the same name in your "different" library.&amp;nbsp; If you so choose, delete the "different" library when you are done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's easier, the new tables can go into the "different" library instead, just by adding two lines to your program and without changing the macro.&amp;nbsp; What's your pleasure?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749892#M235757</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-06-23T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change all table names in Work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749903#M235759</link>
      <description>&lt;P&gt;I was going to suggest this too. I make TLFs for a large CRO and we use proc compare. We just save the QC tables in another directory separate from the production side.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 16:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-all-table-names-in-Work-library/m-p/749903#M235759</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-06-23T16:11:55Z</dc:date>
    </item>
  </channel>
</rss>

