<?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: put data from an item store into library dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319724#M70307</link>
    <description>&lt;P&gt;I am sorry but I do not get this to work. If you try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;

ods output work.ScoreExample = work.DataSet;&lt;/PRE&gt;&lt;P&gt;There is no&amp;nbsp;work.DataSet. Ultimately, I would like to persist&amp;nbsp;DataSet in a library (not Work obviously) to run the model against some new data in the future. Any idea to persist the model as a dataset for another run would be very much appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Dec 2016 12:38:36 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2016-12-17T12:38:36Z</dc:date>
    <item>
      <title>put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319615#M70252</link>
      <description>&lt;P&gt;This question is related to this &lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/persist-fitted-model-produced-by-proc-glmselect/m-p/319575#M16894" target="_self"&gt;post&lt;/A&gt;. Here an item store is created as part of proc glmselect. How can I persist the item store as a library's dataset (SomeLib.DatasetName). Something like this, related to the aforementioned post, does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data SomeLib.DatasetName;
	Set work.ScoreExample;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319615#M70252</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-16T19:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319618#M70253</link>
      <description>&lt;P&gt;If that's what you want why not capture the ParameterEstimate table?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need to be more explicit in what you're looking for, as it's not clear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319618#M70253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-16T19:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319619#M70254</link>
      <description>&lt;P&gt;Thanks. Sorry I am still a SAS newby. Can you please provide some code example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a code example, which does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     /* store the model */
quit;

/* selected model contains two explanatory variables:
   Horsepower and Wheelbase */
data NewData;
Horsepower = 200; Wheelbase = 100; output;
Horsepower = 250; Wheelbase = 110; output;
Horsepower = 180; Wheelbase = 95; output;
run;

proc plm restore=work.ScoreExample;
   score data=NewData out=Pred;  /* evaluate the model on new data */
run;

Data SomeLib.DatasetName;
   Set work.ScoreExample;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319619#M70254</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-16T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319622#M70255</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/kb/22/949.html" target="_blank"&gt;http://support.sas.com/kb/22/949.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319622#M70255</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-16T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319724#M70307</link>
      <description>&lt;P&gt;I am sorry but I do not get this to work. If you try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;

ods output work.ScoreExample = work.DataSet;&lt;/PRE&gt;&lt;P&gt;There is no&amp;nbsp;work.DataSet. Ultimately, I would like to persist&amp;nbsp;DataSet in a library (not Work obviously) to run the model against some new data in the future. Any idea to persist the model as a dataset for another run would be very much appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 12:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319724#M70307</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-17T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319726#M70309</link>
      <description>&lt;P&gt;Reread the note again. It's exactly what you want, including the ODS statement. You should be able to run the code in the example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Apparently this is one example you can't run, my mistake.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 14:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319726#M70309</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-17T14:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319729#M70312</link>
      <description>&lt;P&gt;The ODS statement goes before your PROC and should be EXACTLY like the example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 14:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319729#M70312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-17T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319730#M70313</link>
      <description>&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output work.ScoreExample = work.DataSet;

proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;&lt;/PRE&gt;&lt;P&gt;does not work either (no&amp;nbsp;work.DataSet produced). Am I missing something. Could you please provide some working code example? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 15:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319730#M70313</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-17T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319740#M70318</link>
      <description>&lt;P&gt;I was being literal when I said exactly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods output ParameterEstimates=parms;
proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The table called Parms will have the parameter estimates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 18:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319740#M70318</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-17T18:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319745#M70321</link>
      <description>&lt;P&gt;It still does not achieve what I want (see linked post in question). This is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output ParameterEstimates=parms;
proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;

data NewData;
Horsepower = 200; Wheelbase = 100; output;
Horsepower = 250; Wheelbase = 110; output;
Horsepower = 180; Wheelbase = 95; output;
run;

proc plm restore=parms;
   score data=NewData out=Pred;  /* evaluate the model on new data */
run;&lt;/PRE&gt;&lt;P&gt;The intention is to score the model using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc plm restore=parms;&lt;/PRE&gt;&lt;P&gt;from the data set params.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 19:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319745#M70321</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-17T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319750#M70323</link>
      <description>&lt;P&gt;From what I can see, you already had that solution with the STORE statement. Your question here was how to view the data in the item store, via your subject line -&amp;gt; &lt;U&gt;&lt;STRONG&gt;put data from an item store into a library dataset&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp;You seem to have two requirements that&amp;nbsp;you want satisfied at once, which doesn't seem possible within this model of scoring. Without understanding your motivation or business problem, workarounds can't be suggested.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My interpretation of your questions:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;How to score a data set (GLMSELECT w/ STORE + PROC PLM) - previous question&lt;/P&gt;
&lt;P&gt;2. Estimates table that can be viewed as a dataset&amp;nbsp;(ODS table) - this question&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the PARMS table for #1 and use the ScoreExample for #2.&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;ods output ParameterEstimates=parms;
proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;

title 'Parameter Estimates Table';
proc print data=parms;
run;
title;

data NewData;
Horsepower = 200; Wheelbase = 100; output;
Horsepower = 250; Wheelbase = 110; output;
Horsepower = 180; Wheelbase = 95; output;
run;

proc plm restore=ScoreExample;
   score data=NewData out=Pred;  /* evaluate the model on new data */
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is an issue for you, feel free to add it to the Ideas/Ballot suggestions for the next release of SAS.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 22:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319750#M70323</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-17T22:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319789#M70338</link>
      <description>&lt;P&gt;I think there is a missunderstanding. Given this original code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods output ParameterEstimates=parms;
proc GLMSELECT data=sashelp.cars;
model msrp = Cylinders EngineSize Horsepower Length 
             MPG_City MPG_Highway Weight Wheelbase;
store work.ScoreExample;     
run;

title 'Parameter Estimates Table';
proc print data=parms;
run;
title;&lt;/PRE&gt;&lt;P&gt;I want to persist&amp;nbsp;work.ScoreExample, which is an item store, in some form (maybe one can persist item stores?) so that I can read this persisted object/dataset/itemstore later on (e.g. in a different program). I was fixated on storing&amp;nbsp;the&amp;nbsp;work.ScoreExample as dataset in a library (e.g. as SomeLibrary.PersistedModelDataset where&amp;nbsp;&lt;SPAN&gt;work.ScoreExample =&amp;gt;&amp;nbsp;SomeLibrary.PersistedModel) so that I can do something like this in the future/in a different program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data NewData;
Horsepower = 200; Wheelbase = 100; output;
Horsepower = 250; Wheelbase = 110; output;
Horsepower = 180; Wheelbase = 95; output;
run;

proc plm restore=SomeLibrary.PersisteModelDataset;
   score data=NewData out=Pred;  /* evaluate the model on new data */
run;

proc print data=Pred labels;
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now IMHO this is a fairly basic requirement. If SAS does not allow me to persist models for later 'execution' it would be pretty useless. I hope this makes my requirement clearer and there is a solution to persit a model created via proc glmselect so that it can be applied to another dataset later on (i.e. in a different program). Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 06:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319789#M70338</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-18T06:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319792#M70339</link>
      <description>&lt;P&gt;An item store can persist in a library. Your storing it in work but can assign it to a permanent library. I'm not seeing the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it not remaining between sessions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possibly debatable about storing parameters in a format that's not modifiable by users but I'm sure you can see the rational for such an implementation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 07:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319792#M70339</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-18T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319794#M70341</link>
      <description>Haha I should have check this. I just simplified the above code. That works fine! Sorry that this was a bot long-wounded (-:</description>
      <pubDate>Sun, 18 Dec 2016 08:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/319794#M70341</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2016-12-18T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: put data from an item store into library dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/385448#M92198</link>
      <description>&lt;P&gt;I would like continue about this topic. Item Store file seems to be invisible in library even it can be seen in windows directory. Any one shed some lights on that?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 19:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-data-from-an-item-store-into-library-dataset/m-p/385448#M92198</guid>
      <dc:creator>xappppp</dc:creator>
      <dc:date>2017-08-03T19:07:13Z</dc:date>
    </item>
  </channel>
</rss>

