<?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: Metadata adjustments by sas code in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960238#M29661</link>
    <description>&lt;P&gt;Thank you Greg for the quick reply. The explanations on how the functions "metadata_setassn" works are very helpful.&lt;/P&gt;&lt;P&gt;I'll try to create a little more understanding for our task with the following:&lt;/P&gt;&lt;P&gt;We need to clone (exportpackage &amp;nbsp;-&amp;gt; importpackge) about 850 DI Jobs that contain user written transformations (hereinafter referred to as UWT).&amp;nbsp;After cloning, in the jobs the original UWTs must be exchanged for the cloned UWTs .&lt;/P&gt;&lt;P&gt;As an example: in the source, the “Table_Source” table in the “Job_Source” job is linked to the user-written transformation “UWT_Source”.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_0-1740572248441.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104954i3A194CEDBCA72B8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_0-1740572248441.png" alt="MichaelK_0-1740572248441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After cloning, the “Table_Clone” table, which has also been cloned, is still linked to the UWT “UWT_Source”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_1-1740572248443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104953i99DC57B004F3A474/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_1-1740572248443.png" alt="MichaelK_1-1740572248443.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we are looking for a way to convert the connection of the table “Table_Clone” to the also cloned UWT “UWT_Clone” with SAS code&lt;/P&gt;&lt;P&gt;The aim should be&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_2-1740572248444.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104951i7D4588E53ED08A06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_2-1740572248444.png" alt="MichaelK_2-1740572248444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the UWTs are identical, the options and mapping should also be retained when replacing them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your explanation, I hope to make progress with the metadata_setassn function.&lt;BR /&gt;I would be very grateful for any further information&lt;/P&gt;&lt;P&gt;Best regards, Michael&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 12:18:18 GMT</pubDate>
    <dc:creator>Michael-K</dc:creator>
    <dc:date>2025-02-26T12:18:18Z</dc:date>
    <item>
      <title>Metadata adjustments by sas code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960138#M29645</link>
      <description>&lt;P&gt;This year's challenge is to create a clone of an existing metadata folder(around 800 objects). I can adjust the attributes of the data objects (names, paths, etc.) using SAS code (metadata_getnasn, metadata_getnattr, metadata_setattr).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have failed at exchanging user written transformations in DI jobs. I suspect that this is possible with the&lt;BR /&gt;"metadata_setassn" function, but I can't find the way exchanging the association.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone already made such replacements and can you give me a tip? Or is this not possible with SAS code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very grateful for a short feedback and a hint in which direction I could continue my research.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm greeting, Michael&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 08:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960138#M29645</guid>
      <dc:creator>Michael-K</dc:creator>
      <dc:date>2025-02-25T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata adjustments by sas code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960183#M29655</link>
      <description>I'm not clear on what exactly you are trying to do, but the METADATA_SETASSN function is passed an two URIs, that of the object whose association is being modified, and the object being associated. It is additionally passed the name of the association and a modification (append, merge, modify, remove or replace).&lt;BR /&gt;&lt;BR /&gt;So, if I had an object "Object A" associated with a single object "Object B" through association "Assocation1", and I wanted to replace this association to "Object B" with one to "Object C" I could use METADATA_SETASSN with the REPLACE or MODIFY mod:&lt;BR /&gt;metadata_setassn(object-a-uri,"Assocation1","REPLACE",object-c-uri);&lt;BR /&gt;This replaces the association1 to object b with an assocation1 to object c. &lt;BR /&gt;&lt;BR /&gt;If I wanted to retain the object b association I could use APPEND or MERGE to add an association to object c. &lt;BR /&gt;&lt;BR /&gt;If I have multiple objects associated with object A through association1 and I want to replace B with C and leave the rest, I would use a REMOVE using the object-b-uri and APPEND or MERGE with object-c-uri, or I could use REPLACE and pass all the existing URIs except object-b-uri, instead adding the object-c-uri.</description>
      <pubDate>Tue, 25 Feb 2025 19:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960183#M29655</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-02-25T19:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata adjustments by sas code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960238#M29661</link>
      <description>&lt;P&gt;Thank you Greg for the quick reply. The explanations on how the functions "metadata_setassn" works are very helpful.&lt;/P&gt;&lt;P&gt;I'll try to create a little more understanding for our task with the following:&lt;/P&gt;&lt;P&gt;We need to clone (exportpackage &amp;nbsp;-&amp;gt; importpackge) about 850 DI Jobs that contain user written transformations (hereinafter referred to as UWT).&amp;nbsp;After cloning, in the jobs the original UWTs must be exchanged for the cloned UWTs .&lt;/P&gt;&lt;P&gt;As an example: in the source, the “Table_Source” table in the “Job_Source” job is linked to the user-written transformation “UWT_Source”.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_0-1740572248441.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104954i3A194CEDBCA72B8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_0-1740572248441.png" alt="MichaelK_0-1740572248441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After cloning, the “Table_Clone” table, which has also been cloned, is still linked to the UWT “UWT_Source”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_1-1740572248443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104953i99DC57B004F3A474/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_1-1740572248443.png" alt="MichaelK_1-1740572248443.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we are looking for a way to convert the connection of the table “Table_Clone” to the also cloned UWT “UWT_Clone” with SAS code&lt;/P&gt;&lt;P&gt;The aim should be&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelK_2-1740572248444.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104951i7D4588E53ED08A06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelK_2-1740572248444.png" alt="MichaelK_2-1740572248444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the UWTs are identical, the options and mapping should also be retained when replacing them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your explanation, I hope to make progress with the metadata_setassn function.&lt;BR /&gt;I would be very grateful for any further information&lt;/P&gt;&lt;P&gt;Best regards, Michael&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 12:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960238#M29661</guid>
      <dc:creator>Michael-K</dc:creator>
      <dc:date>2025-02-26T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata adjustments by sas code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960315#M29668</link>
      <description>I'm not intimately familiar with how DI Studio job contents translate into Metadata objects so you may be best served by examining your "Job_Clone" object using the Metabrowse to see how these objects associate with each other, but I think in Metadata this is more complicated than switching out a single association.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2025 18:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960315#M29668</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-02-26T18:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata adjustments by sas code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960374#M29671</link>
      <description>&lt;P&gt;In principle you are right, but it is about 330 jobs with 450 UWTs and 12200 mappings to be drawn manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The metadata browser and I are great friends, but the integration of UWTS in the job is really very complex . I think I will invest a few more hours in R&amp;amp;D&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your support&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 06:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-adjustments-by-sas-code/m-p/960374#M29671</guid>
      <dc:creator>Michael-K</dc:creator>
      <dc:date>2025-02-27T06:51:00Z</dc:date>
    </item>
  </channel>
</rss>

