<?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: Create SASLibrary Metadata with Extended Attributes Programmatically in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-SASLibrary-Metadata-with-Extended-Attributes/m-p/823072#M325005</link>
    <description>This macro will create a BASE engine library - I'm sure it could be extended to support other engine types:  &lt;A href="https://core.sasjs.io/mm__createlibrary_8sas.html" target="_blank"&gt;https://core.sasjs.io/mm__createlibrary_8sas.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you manage it, feel free to raise a PR!&lt;BR /&gt;&lt;BR /&gt;By the way we also have a free metadata exploration tool, if you'd like a copy just send a PM.</description>
    <pubDate>Wed, 13 Jul 2022 08:49:11 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2022-07-13T08:49:11Z</dc:date>
    <item>
      <title>Create SASLibrary Metadata with Extended Attributes Programmatically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-SASLibrary-Metadata-with-Extended-Attributes/m-p/822491#M324796</link>
      <description>&lt;P&gt;Due to a requirement in creating multiple SAS libraries from time to time in the Management Console, I am trying to figure out how to do this programmatically.&amp;nbsp; These libraries are pointing to external databases. So far, using the available examples I was able to use the following code to create library metadata. SAS Version 9.4M6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc metadata in='&amp;lt;AddMetadata&amp;gt;
 &amp;lt;Metadata&amp;gt;
   &amp;lt;SASLibrary
      Name="Test Library" 
      Desc="This is a test" 
      Folder="\Shared Data\Test"
      Engine="DB2"    
      IsDBMSLibname="1"      
      IsHidden="0"
      Libref="testlib"
      IsPreassigned="0"
      PublicType="Library"&amp;gt;
    &amp;lt;/SASLibrary&amp;gt;
 &amp;lt;/Metadata&amp;gt;
 &amp;lt;Reposid&amp;gt;A0000001.A849HGWS&amp;lt;/Reposid&amp;gt;
 &amp;lt;NS&amp;gt;SAS&amp;lt;/NS&amp;gt;
 &amp;lt;Flags&amp;gt;268435456&amp;lt;/Flags&amp;gt;
 &amp;lt;Options/&amp;gt;
&amp;lt;/AddMetadata&amp;gt;
';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;However this is still missing the resource template, schema name, location (folder name). Is there any way we can add these programmatically as well? Also anyway to update the access templates? Any attributes that I can assign these values to when calling proc metadata? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 03:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-SASLibrary-Metadata-with-Extended-Attributes/m-p/822491#M324796</guid>
      <dc:creator>sakurugoda</dc:creator>
      <dc:date>2022-07-11T03:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create SASLibrary Metadata with Extended Attributes Programmatically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-SASLibrary-Metadata-with-Extended-Attributes/m-p/823072#M325005</link>
      <description>This macro will create a BASE engine library - I'm sure it could be extended to support other engine types:  &lt;A href="https://core.sasjs.io/mm__createlibrary_8sas.html" target="_blank"&gt;https://core.sasjs.io/mm__createlibrary_8sas.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you manage it, feel free to raise a PR!&lt;BR /&gt;&lt;BR /&gt;By the way we also have a free metadata exploration tool, if you'd like a copy just send a PM.</description>
      <pubDate>Wed, 13 Jul 2022 08:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-SASLibrary-Metadata-with-Extended-Attributes/m-p/823072#M325005</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-07-13T08:49:11Z</dc:date>
    </item>
  </channel>
</rss>

