<?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: aa_model_register in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/370192#M275624</link>
    <description>&lt;P&gt;What library did you put your _MODEL_VARSMETA&amp;nbsp;into?&lt;/P&gt;
&lt;P&gt;My guess without seeing any code is that you passed the name of the data set to the macro without a library and so SAS will assume the data is in the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by some chance you are one of the few that have a USER library for single level names then you may need to tell this macro specifically which library the set is in with either USER. _MODEL_VARSMETA&amp;nbsp;or any seprate parameter that may reference a library.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 22:51:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-23T22:51:56Z</dc:date>
    <item>
      <title>aa_model_register</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/369886#M275623</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to register an R model into SAS metadata using the aa_model_register macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am getting a warning about the _MODEL_VARSMETA table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: File WORK._MODEL_VARSMETA.DATA does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the R model, converted it into PMML and then used proc pscore to convert it into a sas file.&lt;/P&gt;&lt;P&gt;However, the aa_model_register macro goes to the exit statement with the above warning in the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I make sure that the table is created\available and the model gets registered?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, this happens intermittently. Sometimes the macro runs, sometimes not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know if any more details are needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/369886#M275623</guid>
      <dc:creator>nsabhyankar</dc:creator>
      <dc:date>2017-06-23T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: aa_model_register</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/370192#M275624</link>
      <description>&lt;P&gt;What library did you put your _MODEL_VARSMETA&amp;nbsp;into?&lt;/P&gt;
&lt;P&gt;My guess without seeing any code is that you passed the name of the data set to the macro without a library and so SAS will assume the data is in the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by some chance you are one of the few that have a USER library for single level names then you may need to tell this macro specifically which library the set is in with either USER. _MODEL_VARSMETA&amp;nbsp;or any seprate parameter that may reference a library.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/370192#M275624</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-23T22:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: aa_model_register</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/370228#M275625</link>
      <description>&lt;P&gt;I did not put the dataset anywhere. Neither it is an input to the macro.&lt;BR /&gt;&lt;BR /&gt;It seems to be a dataset created internally in the macro. Even in the log, I did not see any statement which creates&amp;nbsp;this dataset. The first mention of it in the log was in the warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes the macro goes to exit with a '%GOTO EXIT' even without any warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my macro call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%aa_model_register(modelname=&amp;lt;name of the model&amp;gt;,&lt;BR /&gt;modeldesc=%nrbquote(&amp;lt;model description&amp;gt;),&lt;BR /&gt;register=Y,&lt;BR /&gt;mrPath=%NRBQUOTE(/User Folders/&amp;lt;user&amp;gt;/My Folder/),&lt;BR /&gt;spk=N,&lt;BR /&gt;spkfolder=c:\temp\,&lt;BR /&gt;data=&amp;lt;library&amp;gt;.&amp;lt;data set name&amp;gt; /*Name of the dataset used for model creation/ ,&lt;BR /&gt;target= &amp;lt;target variable&amp;gt;/*Name of the target variable*/,&lt;BR /&gt;level=Continuous/*Level of the target variable (Binary or Continuous)*/,&lt;BR /&gt;miningalgorithm=regression,&lt;BR /&gt;scorecodefile=/local/install/&amp;lt;path&amp;gt;/&amp;lt;sas_file_name&amp;gt;.sas&lt;BR /&gt;) ;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 06:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aa-model-register/m-p/370228#M275625</guid>
      <dc:creator>nsabhyankar</dc:creator>
      <dc:date>2017-06-24T06:17:21Z</dc:date>
    </item>
  </channel>
</rss>

