<?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 model scoring table in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Sas-Viya-model-scoring-table/m-p/946335#M2625</link>
    <description>&lt;P&gt;I don't know if this will help you in Model Manager, but when I have an issue with a table that has more than 32 characters, I use the following macro in Studio:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Define the macro variables */
%let incaslib = ; /* CAS library where the table is located */
%let casdata = ; /* Name of the CAS table you want to rename */
%let casout = ; /* Name of the table you want to set in CAS */

/* Macro to load and promote a table in the CAS environment */
%macro sas_load_promote_cas(casout=, incaslib=, casdata=);

/* Drops the table in the CASLIB and loads the table into CAS */
proc casutil;
	droptable incaslib="&amp;amp;incaslib." casdata="&amp;amp;casdata." quiet;
	load casdata="&amp;amp;casdata." incaslib="&amp;amp;incaslib."
	outcaslib="&amp;amp;incaslib." casout="&amp;amp;casout.";
run;

/* Promotes the table to the CASLIB */
proc casutil;
	promote incaslib="&amp;amp;incaslib." casdata="&amp;amp;casout."
	outcaslib="&amp;amp;incaslib." casout="&amp;amp;casout.";
quit;
%mend sas_load_promote_cas;

/* Call the macro with the defined variables */
%sas_load_promote_cas(casout=&amp;amp;casout, incaslib=&amp;amp;incaslib, casdata=&amp;amp;casdata);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This way, I rename the table to a shorter name so it can be used within the SAS environment.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 18:07:17 GMT</pubDate>
    <dc:creator>arthurdpereira</dc:creator>
    <dc:date>2024-10-04T18:07:17Z</dc:date>
    <item>
      <title>Sas Viya model scoring table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Sas-Viya-model-scoring-table/m-p/944876#M2603</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Viya 4 model manager, while generating a scoring table, the default table name is too big (more than 32 characters length )can we rename the default table name? Or any suggestions to shorten the default table name?&lt;/P&gt;
&lt;P&gt;We are facing as issue while reusing the same in SAS VIYA such as to in set statement while creating the table in work library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 09:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Sas-Viya-model-scoring-table/m-p/944876#M2603</guid>
      <dc:creator>devi001</dc:creator>
      <dc:date>2024-09-23T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Viya model scoring table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Sas-Viya-model-scoring-table/m-p/946335#M2625</link>
      <description>&lt;P&gt;I don't know if this will help you in Model Manager, but when I have an issue with a table that has more than 32 characters, I use the following macro in Studio:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Define the macro variables */
%let incaslib = ; /* CAS library where the table is located */
%let casdata = ; /* Name of the CAS table you want to rename */
%let casout = ; /* Name of the table you want to set in CAS */

/* Macro to load and promote a table in the CAS environment */
%macro sas_load_promote_cas(casout=, incaslib=, casdata=);

/* Drops the table in the CASLIB and loads the table into CAS */
proc casutil;
	droptable incaslib="&amp;amp;incaslib." casdata="&amp;amp;casdata." quiet;
	load casdata="&amp;amp;casdata." incaslib="&amp;amp;incaslib."
	outcaslib="&amp;amp;incaslib." casout="&amp;amp;casout.";
run;

/* Promotes the table to the CASLIB */
proc casutil;
	promote incaslib="&amp;amp;incaslib." casdata="&amp;amp;casout."
	outcaslib="&amp;amp;incaslib." casout="&amp;amp;casout.";
quit;
%mend sas_load_promote_cas;

/* Call the macro with the defined variables */
%sas_load_promote_cas(casout=&amp;amp;casout, incaslib=&amp;amp;incaslib, casdata=&amp;amp;casdata);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This way, I rename the table to a shorter name so it can be used within the SAS environment.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 18:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Sas-Viya-model-scoring-table/m-p/946335#M2625</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-10-04T18:07:17Z</dc:date>
    </item>
  </channel>
</rss>

