<?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 Updating metadata for SAS library in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738067#M22063</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to change the SASLIBREF of multiple metadata registered sasdata sets at once?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or Change the data server and DBMS of&amp;nbsp; an existing Library in sas metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existing library is impala and intended target library to which all existing tables be allocated is snowflake&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ir0nxl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Delete the exiting impala Library (say with the libref 'implib')&amp;nbsp; in the target environment (say Test) under which all the tables are registered.&lt;/P&gt;&lt;P&gt;create a new SNOWFLAKE library with the same libref&amp;nbsp;'implib' in the target environment (TEST)&amp;nbsp;&lt;BR /&gt;Export all the table from source environment (Dev) to Test.&amp;nbsp; SAS metadata engine is smart enough to the pick up the target library(newly created Snowflake library) with the same name&amp;nbsp;'implib'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then programmatically uppercase ( which is required for SNOWFLAKE) the PhysicalName/Name of all tables using metadata_setattr() function.&lt;/P&gt;&lt;P&gt;Finally Update metadata of tables selecting them all and updating manually (or programmatically if preferred).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 23:47:37 GMT</pubDate>
    <dc:creator>ird0nxl</dc:creator>
    <dc:date>2021-05-04T23:47:37Z</dc:date>
    <item>
      <title>Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738067#M22063</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to change the SASLIBREF of multiple metadata registered sasdata sets at once?&amp;nbsp;&lt;/P&gt;&lt;P&gt;or Change the data server and DBMS of&amp;nbsp; an existing Library in sas metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existing library is impala and intended target library to which all existing tables be allocated is snowflake&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ir0nxl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Delete the exiting impala Library (say with the libref 'implib')&amp;nbsp; in the target environment (say Test) under which all the tables are registered.&lt;/P&gt;&lt;P&gt;create a new SNOWFLAKE library with the same libref&amp;nbsp;'implib' in the target environment (TEST)&amp;nbsp;&lt;BR /&gt;Export all the table from source environment (Dev) to Test.&amp;nbsp; SAS metadata engine is smart enough to the pick up the target library(newly created Snowflake library) with the same name&amp;nbsp;'implib'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then programmatically uppercase ( which is required for SNOWFLAKE) the PhysicalName/Name of all tables using metadata_setattr() function.&lt;/P&gt;&lt;P&gt;Finally Update metadata of tables selecting them all and updating manually (or programmatically if preferred).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738067#M22063</guid>
      <dc:creator>ird0nxl</dc:creator>
      <dc:date>2021-05-04T23:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738071#M22064</link>
      <description>&lt;P&gt;The easiest way to do this would be to create new libraries in SAS Management Console Library Manager mirroring the existing SAS LIBREFs, then use the Register Tables option on the data library's properties. Then you can delete the old libraries which will remove all of the registered datasets for those libraries in one go.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 01:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738071#M22064</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-30T01:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738096#M22065</link>
      <description>&lt;P&gt;That would create new objects? We want to retain the same object_id so that we do not have to change 800+ DIS jobs.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738096#M22065</guid>
      <dc:creator>ird0nxl</dc:creator>
      <dc:date>2021-04-30T05:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738145#M22066</link>
      <description>You could do this in SAS code with Metadata DATA Step Functions to modify the libref or associated database information and PROC METALIB to register the associated tables.&lt;BR /&gt;&lt;BR /&gt;SAS Language Interfaces to Metadata - DATA Step Functions&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/part-5.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/part-5.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Apr 2021 12:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738145#M22066</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-04-30T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738288#M22070</link>
      <description>&lt;P&gt;Are the LIBREFs pointing to an external database server? If so you can change the server name on the data library without changing the library as long as the data library engine isn't changing. For example staying as ODBC, but pointing to a new database server containing the same databases and schemas.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 23:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738288#M22070</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-30T23:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738427#M22071</link>
      <description>&lt;P&gt;Changing from Impala to Snowflake. Changing the server or connection of the registered Library is not possible&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 20:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738427#M22071</guid>
      <dc:creator>ird0nxl</dc:creator>
      <dc:date>2021-05-02T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738428#M22072</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380310"&gt;@ird0nxl&lt;/a&gt;&amp;nbsp;- That's unfortunate. We are lucky to be using ODBC only so switching servers is quick and easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't use DIS, but having tables identified by object_id seems like a siginificant limitation.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 20:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/738428#M22072</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-02T20:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739099#M22089</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380310"&gt;@ird0nxl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;"Changing from Impala to Snowflake. Changing the server or connection of the registered Library is not possible"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Accessing Impala typically requires SAS access interface&amp;nbsp; to Impala, Similarly&amp;nbsp;for Snowflake one would typically use SAS access interface Snowflake.&lt;BR /&gt;Just curious how do you plan to manage without making this change ?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739099#M22089</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-04T23:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739101#M22090</link>
      <description>&lt;P&gt;&amp;nbsp;You can change the server by using meta function&lt;/P&gt;&lt;P&gt;rc = metadata_setattr(liburi, "Engine", 'SASIOSNF');&lt;/P&gt;&lt;P&gt;Then you can can change the other relevant options in the library via SMC or DIS.&lt;BR /&gt;&lt;BR /&gt;But I have found a simpler way than manipulating metadata (see the original question)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739101#M22090</guid>
      <dc:creator>ird0nxl</dc:creator>
      <dc:date>2021-05-04T23:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739102#M22091</link>
      <description>&lt;P&gt;Thanks for the response. My understanding is that using SAS Management Console is simpler and is the recommended best practice (&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/p1e5qsh142wjgwn1kz6gpsq1xeyi.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/p1e5qsh142wjgwn1kz6gpsq1xeyi.htm&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;
&lt;P&gt;Writing a program , testing on dev/qa , passing through the change review before implementing on production is a laborious and time consuming process.&lt;/P&gt;
&lt;P&gt;I realize that there is a lot to learn in SAS, it would help many of us, if someone can enlighten us with the advantage of doing it using a code and not using SAS Management Console.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739102#M22091</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-04T23:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating metadata for SAS library</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739108#M22092</link>
      <description>&lt;P&gt;Using SMC or DIS is best practise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you need to find a way to&amp;nbsp; migrate 800+ tables in a single library from one DBMS to new DBMS.&lt;/P&gt;&lt;P&gt;updating them individually is not an option. So the best option was to update the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to change the server and other relevant properties of the library using SAS metadata functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the solution I opted&amp;nbsp; involves no programmatic metadata manipulation of the library but uppercasing the physicalName/Name of all table which is an unfortunate requirement of SNOWFLAKE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution we used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Delete the exiting impala Library (say with the libref 'implib')&amp;nbsp; in the target environment (say Test) under which all the tables are registered.&lt;/P&gt;&lt;P&gt;create a new SNOWFLAKE library with the same libref&amp;nbsp;'implib' in the target environment (TEST)&amp;nbsp;&lt;BR /&gt;Export all the table from source environment (Dev) to Test.&amp;nbsp; SAS metadata engine is smart enough to&amp;nbsp; pick up the target library(newly created Snowflake library) with the same name&amp;nbsp;'implib'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then programmatically uppercase (which is required for SNOWFLAKE) the PhysicalName/Name of all tables using metadata_setattr() function.&lt;/P&gt;&lt;P&gt;Finally update metadata of tables selecting them all and updating manually (or programmatically if preferred).&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Updating-metadata-for-SAS-library/m-p/739108#M22092</guid>
      <dc:creator>ird0nxl</dc:creator>
      <dc:date>2021-05-04T23:54:08Z</dc:date>
    </item>
  </channel>
</rss>

