<?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 sas code node not affecting output data in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/VDMML-sas-code-node-not-affecting-output-data/m-p/666305#M8343</link>
    <description>&lt;P&gt;I have a simple code snippet I want to run in the SAS code node in VDMML, that removes varaibles with given suffixes. Here is my code:&lt;/P&gt;&lt;PRE&gt;proc contents noprint data=&amp;amp;dm_data out = contents (keep=name) ;
run;


data contents;
	set contents ;
	if index(lowcase(name),'_dt') then drop=1 ;
	if index(lowcase(name),'_rk') then drop=1 ;
	if index(lowcase(name),'_dttm') then drop=1 ;
run ; 
	
proc sql;
	select name into: dropvars separated by ' ' from contents where drop = 1;
	quit;

data &amp;amp;dm_data;
	set &amp;amp;dm_data (drop=&amp;amp;dropvars);
run;&lt;/PRE&gt;&lt;P&gt;The proc contents and SQL seems to work, and I get no errors in the log. The log even implies that the final dataset has 1602 variables, down 7 from the original 1609, just as expected. But the column is still there in the results view. And in the next node, the column is still visible, and populated with data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I using the wrong macro variable name for the data? Do I need to do a CAS action? or do I have to do some metadata update?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 08:40:17 GMT</pubDate>
    <dc:creator>Ullsokk</dc:creator>
    <dc:date>2020-07-01T08:40:17Z</dc:date>
    <item>
      <title>VDMML sas code node not affecting output data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/VDMML-sas-code-node-not-affecting-output-data/m-p/666305#M8343</link>
      <description>&lt;P&gt;I have a simple code snippet I want to run in the SAS code node in VDMML, that removes varaibles with given suffixes. Here is my code:&lt;/P&gt;&lt;PRE&gt;proc contents noprint data=&amp;amp;dm_data out = contents (keep=name) ;
run;


data contents;
	set contents ;
	if index(lowcase(name),'_dt') then drop=1 ;
	if index(lowcase(name),'_rk') then drop=1 ;
	if index(lowcase(name),'_dttm') then drop=1 ;
run ; 
	
proc sql;
	select name into: dropvars separated by ' ' from contents where drop = 1;
	quit;

data &amp;amp;dm_data;
	set &amp;amp;dm_data (drop=&amp;amp;dropvars);
run;&lt;/PRE&gt;&lt;P&gt;The proc contents and SQL seems to work, and I get no errors in the log. The log even implies that the final dataset has 1602 variables, down 7 from the original 1609, just as expected. But the column is still there in the results view. And in the next node, the column is still visible, and populated with data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I using the wrong macro variable name for the data? Do I need to do a CAS action? or do I have to do some metadata update?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/VDMML-sas-code-node-not-affecting-output-data/m-p/666305#M8343</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-07-01T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: VDMML sas code node not affecting output data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/VDMML-sas-code-node-not-affecting-output-data/m-p/666353#M8344</link>
      <description>Figured out I could use the macro %dmcas_metaChange to change the role to rejected, as it seems variables cannot be dropped in the code node</description>
      <pubDate>Wed, 01 Jul 2020 12:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/VDMML-sas-code-node-not-affecting-output-data/m-p/666353#M8344</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-07-01T12:35:37Z</dc:date>
    </item>
  </channel>
</rss>

