<?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: How to reference correctly the astore file in VDMML SAS code in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-reference-correctly-the-astore-file-in-VDMML-SAS-code/m-p/843699#M10373</link>
    <description>&lt;P&gt;Update.&lt;/P&gt;
&lt;P&gt;It works when I hard-code the astore table name.&lt;/P&gt;
&lt;P&gt;But I would like to replace the&amp;nbsp;&lt;CODE class=" language-sas"&gt;_AHB0Q0WSA76M8CJR9N53GX1JX_ast &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;by&amp;nbsp;a&amp;nbsp;macro-variable.&amp;nbsp;Which&amp;nbsp;one?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&amp;amp;caslib;

/************************************************************************/
/* Score data using ASTORE code generated for the SVM model             */
/************************************************************************/



proc astore;
  score data=&amp;amp;dm_data out=mycaslib.scored
        rstore=&amp;amp;dm_datalib.._AHB0Q0WSA76M8CJR9N53GX1JX_ast copyvars=(x y isInside);
run;

proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;

proc sql;
	select * from mycaslib.scored2(obs=100);
quit;


ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Nov 2022 23:49:09 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2022-11-10T23:49:09Z</dc:date>
    <item>
      <title>How to reference correctly the astore file in VDMML SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-reference-correctly-the-astore-file-in-VDMML-SAS-code/m-p/843697#M10372</link>
      <description>&lt;P&gt;I don't get this working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my pipeline I ran successfully a SVM and in the open sas code node I want to score with the saved astore...&lt;/P&gt;
&lt;P&gt;I don't know where it is stored...&lt;/P&gt;
&lt;P&gt;I thought the macro variables would help me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thre prior SVM saved correctly I would say.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 933px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77188iFD714E37F6AF75C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77187iDE2569632F4C715B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;ERROR: The file or path '_667LDN0RZS1PV45RA8U86EEK_ast.sashdat' is not available in the file system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* SAS code */

/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&amp;amp;caslib;

/************************************************************************/
/* Score data using ASTORE code generated for the SVM model             */
/************************************************************************/

proc casutil;
load casdata="&amp;amp;dm_rstoretable..sashdat" incaslib="&amp;amp;dm_caslib."
casout="mine" outcaslib="&amp;amp;caslib.";
run;

proc astore;
  score data=&amp;amp;dm_data out=mycaslib.scored
        rstore=mycaslib.mine copyvars=(x y isInside);
run;

proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;

proc sql;
	select * from mycaslib.scored2(obs=100);
quit;


ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-reference-correctly-the-astore-file-in-VDMML-SAS-code/m-p/843697#M10372</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-11-10T23:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference correctly the astore file in VDMML SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-reference-correctly-the-astore-file-in-VDMML-SAS-code/m-p/843699#M10373</link>
      <description>&lt;P&gt;Update.&lt;/P&gt;
&lt;P&gt;It works when I hard-code the astore table name.&lt;/P&gt;
&lt;P&gt;But I would like to replace the&amp;nbsp;&lt;CODE class=" language-sas"&gt;_AHB0Q0WSA76M8CJR9N53GX1JX_ast &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;by&amp;nbsp;a&amp;nbsp;macro-variable.&amp;nbsp;Which&amp;nbsp;one?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&amp;amp;caslib;

/************************************************************************/
/* Score data using ASTORE code generated for the SVM model             */
/************************************************************************/



proc astore;
  score data=&amp;amp;dm_data out=mycaslib.scored
        rstore=&amp;amp;dm_datalib.._AHB0Q0WSA76M8CJR9N53GX1JX_ast copyvars=(x y isInside);
run;

proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;

proc sql;
	select * from mycaslib.scored2(obs=100);
quit;


ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-reference-correctly-the-astore-file-in-VDMML-SAS-code/m-p/843699#M10373</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-11-10T23:49:09Z</dc:date>
    </item>
  </channel>
</rss>

