<?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 VDMML load dm_file_deltacode in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/VDMML-load-dm-file-deltacode/m-p/859332#M1671</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to advise me, how to load a deltacode to the VDMML?&lt;/P&gt;&lt;P&gt;It is motivated by metadata similar for multiple models, but I can't use global metada. The dmcas_metachange is not versatile enough for me, so the delta code is my choice. The example below is simplified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the VDMML code node, I have (successful) setting of the metadata:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data _null_;
    file "&amp;amp;dm_file_deltacode.";
    put "if lowcase(name) = 'var' then do; impute = 'DISTRIBUTION'; end; ";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works, now I want to load the setting from a table. My idea is to have&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data _null_;
    file "&amp;amp;dm_file_deltacode.";
    set public.impute;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this, it doesn't change the metadata. The table public.impute has a single column with records:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var1' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var2' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var3' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will anything like this work?&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;If you have an idea how to load the settings in another way, feel free to suggest it :-).&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 14:15:54 GMT</pubDate>
    <dc:creator>asasgdsfa</dc:creator>
    <dc:date>2023-02-17T14:15:54Z</dc:date>
    <item>
      <title>VDMML load dm_file_deltacode</title>
      <link>https://communities.sas.com/t5/SAS-Viya/VDMML-load-dm-file-deltacode/m-p/859332#M1671</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to advise me, how to load a deltacode to the VDMML?&lt;/P&gt;&lt;P&gt;It is motivated by metadata similar for multiple models, but I can't use global metada. The dmcas_metachange is not versatile enough for me, so the delta code is my choice. The example below is simplified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the VDMML code node, I have (successful) setting of the metadata:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data _null_;
    file "&amp;amp;dm_file_deltacode.";
    put "if lowcase(name) = 'var' then do; impute = 'DISTRIBUTION'; end; ";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works, now I want to load the setting from a table. My idea is to have&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data _null_;
    file "&amp;amp;dm_file_deltacode.";
    set public.impute;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this, it doesn't change the metadata. The table public.impute has a single column with records:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var1' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var2' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE class=""&gt;put "if lowcase(name) = 'var3' then do; impute = 'DISTRIBUTION'; end; ";&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will anything like this work?&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;If you have an idea how to load the settings in another way, feel free to suggest it :-).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/VDMML-load-dm-file-deltacode/m-p/859332#M1671</guid>
      <dc:creator>asasgdsfa</dc:creator>
      <dc:date>2023-02-17T14:15:54Z</dc:date>
    </item>
  </channel>
</rss>

