<?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 score data using a modelStore model with code? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803356#M9127</link>
    <description>Thank you again for your reply. As the picture I posted shows the model is already registered in the ModelStore caslib. Thus showing that ModelStore is in fact a caslib and that I had access as I registered the model there.</description>
    <pubDate>Tue, 22 Mar 2022 14:37:10 GMT</pubDate>
    <dc:creator>1dsspntdSSsr</dc:creator>
    <dc:date>2022-03-22T14:37:10Z</dc:date>
    <item>
      <title>How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803220#M9120</link>
      <description>&lt;P&gt;I want to reference a model that exists in mu modelStore library but I can't get it to work. I'm using the model name taken from model manager AstoreMetadata.json as shown on the picture below. The code I'm trying is shown below the picture.&lt;/P&gt;&lt;P&gt;Viya version 2021.2&lt;/P&gt;&lt;P&gt;Release 20220317&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deleteme.png" style="width: 757px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69652i04F5E4E0EF19E2F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleteme.png" alt="deleteme.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc gradboost data = caslib.casdata
	inmodel=ModelStore.modelname noprint;
	output out=caslib._scored_gbm;
run;

proc astore;
   score data=caslib.dataset
         rstore=ModelStore.modelname
         out=caslib.astore_out;
quit;&lt;/PRE&gt;&lt;P&gt;The error I get is that modelStore has more than 8 characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to reference the model saved in ModelStore to score data?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803220#M9120</guid>
      <dc:creator>1dsspntdSSsr</dc:creator>
      <dc:date>2022-03-21T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803248#M9122</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have CASLIBs with a name exceeding 8 characters in length, but it's not very practical !&lt;/P&gt;
&lt;P&gt;See here :&lt;/P&gt;
&lt;P&gt;CASLIB= data set option for caslibs longer than 8 characters &lt;BR /&gt;Posted 07-16-2020 03:12 AM (1645 views)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Developers/CASLIB-data-set-option-for-caslibs-longer-than-8-characters/td-p/669817" target="_blank"&gt;https://communities.sas.com/t5/Developers/CASLIB-data-set-option-for-caslibs-longer-than-8-characters/td-p/669817&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 23:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803248#M9122</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-03-21T23:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803287#M9123</link>
      <description>&lt;P&gt;According to the documentation, RSTORE points to a CAS &lt;EM&gt;libref&lt;/EM&gt;, I'm missing a libname statement in your code.&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;states you can have CASlibs with longer names than 8 chars, but SAS librefs are limited to 8 chars.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 10:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803287#M9123</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-22T10:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803352#M9124</link>
      <description>&lt;P&gt;Thank you for your suggestion. ModelStore is a default caslib, I wouldn't have created a libname that is obscurely supported but the SAS folks thought this was somehow helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, I had seen the post you referenced and that option doesn't work on what I'm intending to do. That is why I shared my code. I'd appreciate if suggestions are not just a quick google search but a thought out and tried response. I have done the google searches already.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803352#M9124</guid>
      <dc:creator>1dsspntdSSsr</dc:creator>
      <dc:date>2022-03-22T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803353#M9125</link>
      <description>&lt;P&gt;Same response as above as your suggestion was already placed.&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. ModelStore is a default caslib, I wouldn't have created a libname that is obscurely supported but the SAS folks thought this was somehow helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, I had seen the post you referenced and that option doesn't work on what I'm intending to do. That is why I shared my code. I'd appreciate if suggestions are not just a quick google search but a thought out and tried response. I have done the google searches already.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803353#M9125</guid>
      <dc:creator>1dsspntdSSsr</dc:creator>
      <dc:date>2022-03-22T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803355#M9126</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;
&lt;P&gt;You can always reach out to SAS Technical Support in your country if the "communities" do not help you fast enough or well enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS complains about exceeding 8 positions, but I am wondering if the underlying reason is not &amp;lt;&amp;lt; 'ModelStore' not being known as CASLIB &amp;gt;&amp;gt;.&lt;/P&gt;
&lt;P&gt;See :&lt;/P&gt;
&lt;P&gt;Add ModelStore and ModelPerformanceData Caslibs to a CAS Server&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n0r9qvpxhghjpsn149zfmh0h7qwi.htm#n0t6wxyyu0gr37n1oj6zqwuedlp8" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n0r9qvpxhghjpsn149zfmh0h7qwi.htm#n0t6wxyyu0gr37n1oj6zqwuedlp8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803355#M9126</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-03-22T14:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803356#M9127</link>
      <description>Thank you again for your reply. As the picture I posted shows the model is already registered in the ModelStore caslib. Thus showing that ModelStore is in fact a caslib and that I had access as I registered the model there.</description>
      <pubDate>Tue, 22 Mar 2022 14:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/803356#M9127</guid>
      <dc:creator>1dsspntdSSsr</dc:creator>
      <dc:date>2022-03-22T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/805540#M9149</link>
      <description>&lt;P&gt;I think you want to do this:&lt;/P&gt;
&lt;PRE class="xis-codeFragment"&gt;libname mycas cas caslib=ModelStore;&lt;/PRE&gt;
&lt;P&gt;Then use &lt;STRONG&gt;mycas&lt;/STRONG&gt; where you have &lt;EM&gt;caslib&lt;/EM&gt; and &lt;EM&gt;ModelStore&lt;/EM&gt; in the proc gradboost/astore calls.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 17:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/805540#M9149</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2022-04-01T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to score data using a modelStore model with code?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/805550#M9151</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14512"&gt;@WendyCzika&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;It's probably as simple as that indeed. This is one to remember !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420408"&gt;@1dsspntdSSsr&lt;/a&gt;&amp;nbsp;: I hope you haven't given up yet and that this suggestion / solution will still come in handy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 17:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-data-using-a-modelStore-model-with-code/m-p/805550#M9151</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-04-01T17:51:06Z</dc:date>
    </item>
  </channel>
</rss>

