<?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: SAS Viya runModel - Specify Variables in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/590892#M516</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269130"&gt;@Kyle4&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I received further info from a colleague. He indicates that vars= will not work in this situation as the&lt;SPAN&gt; runModel action doesn’t do the actual I/O when the DS2 program is run. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;He also says&amp;nbsp;The DROP and KEEP DS2 statements and the DROP= and KEEP= table options all should work as expected if specified in the DS2 program.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally, he mentions,&amp;nbsp;In lieu of the vars= parameter, would creating a CAS view on the input table help in this situation?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 12:53:34 GMT</pubDate>
    <dc:creator>joeFurbee</dc:creator>
    <dc:date>2019-09-23T12:53:34Z</dc:date>
    <item>
      <title>SAS Viya runModel - Specify Variables</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/581401#M505</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to score a table with a model. I am using big tables (many rows and columns) and thus don't want to waste time on moving unnecessary data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears as though the output table copies all the variables in the input table. The model only requires some of the variables from the input table. Furthermore, the output table only requires the model outcome (em_eventprobability) and an identifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to specify the variables to output in the output table in order to spare the data replication. I will often be scoring tables in other databases and thus moving as little data as possible is ideal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CASL code I am using is as follows:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;

loadactionset "ds2";

ds2.runModel/
modelname="my_gradboost"
table={caslib="Public", name = "InputData"}
modelTable={caslib="Public", name="SAS_model_table"}
casOut={caslib="Public", name="OutputData"};

run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 13:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/581401#M505</guid>
      <dc:creator>Kyle4</dc:creator>
      <dc:date>2019-08-15T13:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya runModel - Specify Variables</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/585600#M506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269130"&gt;@Kyle4&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I've forwarded this inquiry on internally. We'll get back to you soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 12:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/585600#M506</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2019-09-02T12:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya runModel - Specify Variables</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/589595#M507</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269130"&gt;@Kyle4&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I received this input from a colleague of mine. Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A thought is to try the vars= parameter on the input table (table={caslib="public" name="inputdata" vars={"var1" "var2" "var3"}}). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another is using a DROP or KEEP statement or table option in the DS2 code, if you have access to the code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 11:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/589595#M507</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2019-09-18T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya runModel - Specify Variables</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/590892#M516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269130"&gt;@Kyle4&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I received further info from a colleague. He indicates that vars= will not work in this situation as the&lt;SPAN&gt; runModel action doesn’t do the actual I/O when the DS2 program is run. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;He also says&amp;nbsp;The DROP and KEEP DS2 statements and the DROP= and KEEP= table options all should work as expected if specified in the DS2 program.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally, he mentions,&amp;nbsp;In lieu of the vars= parameter, would creating a CAS view on the input table help in this situation?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 12:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/590892#M516</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2019-09-23T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya runModel - Specify Variables</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/594795#M539</link>
      <description>Thanks so much, Joe. I inserted a keep statement in the ep scorecode in model manager, republished and it works like a charm. Will still explore the cas views. Btw, I have learnt a lot from your online posts.&lt;BR /&gt;&lt;BR /&gt;Appreciate all your feedback.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;Kyle</description>
      <pubDate>Tue, 08 Oct 2019 16:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Viya-runModel-Specify-Variables/m-p/594795#M539</guid>
      <dc:creator>Kyle4</dc:creator>
      <dc:date>2019-10-08T16:11:27Z</dc:date>
    </item>
  </channel>
</rss>

