<?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: Resolution errors when defining module in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667130#M5201</link>
    <description>&lt;P&gt;Duplicate of&amp;nbsp;&lt;A href="https://communities.sas.com/t5/forums/replypage/board-id/sas_iml/message-id/5193" target="_blank"&gt;https://communities.sas.com/t5/forums/replypage/board-id/sas_iml/message-id/5193&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 09:16:38 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-06T09:16:38Z</dc:date>
    <item>
      <title>Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667120#M5190</link>
      <description>&lt;P&gt;Hi, I am trying to make my own module but I have unexpected errors. The following is my module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc iml;&lt;BR /&gt;Start op_fun (parm)&lt;BR /&gt;Global (start0, f, h ,a ,b, sigma_eta, sigma_e, y, rowz, rowy, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, pred, vpred, filt, vfilt);&lt;BR /&gt;Mu0 = &amp;amp;mu0.;&lt;BR /&gt;Sigma0= &amp;amp;sigma0.;&lt;BR /&gt;Run&lt;BR /&gt;Unpack_parm (f, h ,a ,b, sigma_eta, sigma_e, var, rowz, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, parm);&lt;BR /&gt;Call KALCVF (pred, vpred, filt, vfilt, y, 0, a, f, b, h, var, mu0, sigma0);&lt;BR /&gt;Et = y – pred*h`;&lt;BR /&gt;Const= 0.5 * coly * rowy * log ( 2* constant ('PI'));&lt;BR /&gt;Sum1=0;&lt;BR /&gt;Sum2=0;&lt;BR /&gt;Do i=1 to rowy;&lt;BR /&gt;Vpred_i = vpred [(i-1)*rowz+1: i*rowz,];&lt;BR /&gt;Ft=h*vpred_i*T(h) + var [rowz+1:rowz+coly, rowz+1:rowz+coly];&lt;BR /&gt;Neg_PED = const + 0.5 * (sum1 + sum2);&lt;BR /&gt;if (det(ft)&amp;lt;1E-8) then return (1E10);&lt;BR /&gt;et_i =et [i,];&lt;BR /&gt;sum1= sum1+log(det(ft));&lt;BR /&gt;sum2=sum2+et_i*inv(ft)*T(et_i);&lt;BR /&gt;end;&lt;BR /&gt;Return (neg_PED);&lt;BR /&gt;Finish op_fun;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I've got an error message saying that "&lt;EM&gt;&lt;STRONG&gt;Module OP_FUN was not defined due to resolution errors.&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is resolution errors? and how should I fix this problem? I am using SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667120#M5190</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-07-06T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667125#M5191</link>
      <description>&lt;P&gt;Moved to IML forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please paste as code so the format is kept.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667125#M5191</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-06T08:50:52Z</dc:date>
    </item>
    <item>
      <title>Resolution errors when defining module</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667127#M5200</link>
      <description>&lt;P&gt;Hi, I am trying to make my own module but I have unexpected errors. The following is my module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc iml;&lt;BR /&gt;Start op_fun (parm)&lt;BR /&gt;Global (start0, f, h ,a ,b, sigma_eta, sigma_e, y, rowz, rowy, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, pred, vpred, filt, vfilt);&lt;BR /&gt;Mu0 = &amp;amp;mu0.;&lt;BR /&gt;Sigma0= &amp;amp;sigma0.;&lt;BR /&gt;Run&lt;BR /&gt;Unpack_parm (f, h ,a ,b, sigma_eta, sigma_e, var, rowz, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, parm);&lt;BR /&gt;Call KALCVF (pred, vpred, filt, vfilt, y, 0, a, f, b, h, var, mu0, sigma0);&lt;BR /&gt;Et = y – pred*h`;&lt;BR /&gt;Const= 0.5 * coly * rowy * log ( 2* constant ('PI'));&lt;BR /&gt;Sum1=0;&lt;BR /&gt;Sum2=0;&lt;BR /&gt;Do i=1 to rowy;&lt;BR /&gt;Vpred_i = vpred [(i-1)*rowz+1: i*rowz,];&lt;BR /&gt;Ft=h*vpred_i*T(h) + var [rowz+1:rowz+coly, rowz+1:rowz+coly];&lt;BR /&gt;Neg_PED = const + 0.5 * (sum1 + sum2);&lt;BR /&gt;if (det(ft)&amp;lt;1E-8) then return (1E10);&lt;BR /&gt;et_i =et [i,];&lt;BR /&gt;sum1= sum1+log(det(ft));&lt;BR /&gt;sum2=sum2+et_i*inv(ft)*T(et_i);&lt;BR /&gt;end;&lt;BR /&gt;Return (neg_PED);&lt;BR /&gt;Finish op_fun;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I've got an error message saying that "&lt;EM&gt;&lt;STRONG&gt;Module OP_FUN was not defined due to resolution errors.&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is resolution errors? and how should I fix this problem? I am using SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667127#M5200</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-07-06T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667128#M5193</link>
      <description>I moved the question to IML. You can delete my question here. Thank you</description>
      <pubDate>Mon, 06 Jul 2020 09:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667128#M5193</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-07-06T09:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667129#M5194</link>
      <description>&lt;P&gt;I moved it. No need to create a new one.&lt;/P&gt;
&lt;P&gt;Please format your code &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;</description>
      <pubDate>Mon, 06 Jul 2020 09:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667129#M5194</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-06T09:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution errors when defining module</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667130#M5201</link>
      <description>&lt;P&gt;Duplicate of&amp;nbsp;&lt;A href="https://communities.sas.com/t5/forums/replypage/board-id/sas_iml/message-id/5193" target="_blank"&gt;https://communities.sas.com/t5/forums/replypage/board-id/sas_iml/message-id/5193&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667130#M5201</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-06T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667137#M5196</link>
      <description>&lt;P&gt;The "module not defined" error tends to occur when there is some mis-match of control statements.&amp;nbsp; For example an "end" statement is not preceded by a "do" statement, or "else" is not preceded by "if". &amp;nbsp; I don't actually see any such problem in the code that you have posted, so you may need to give more detail including the log with the full error message.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667137#M5196</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2020-07-06T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667140#M5197</link>
      <description>&lt;P&gt;Invalid characters can cause syntax errors. For example, in the statement&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Et = y – pred*h`;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;the character that looks like a minus sign appears to be an "n dash", This can occur if you copy/paste the program from a PDF or RTF format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you change it to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Et = y - pred*h`;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it should resolve.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667140#M5197</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-07-06T09:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667167#M5198</link>
      <description>Thank you. Yes. You are right. I rewrote them and the problem solved. Thank you very much!</description>
      <pubDate>Mon, 06 Jul 2020 13:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667167#M5198</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-07-06T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667169#M5199</link>
      <description>Thank you for your reply. As Rick_SAS advice, I rewrote them and the problem solved.</description>
      <pubDate>Mon, 06 Jul 2020 13:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667169#M5199</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-07-06T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution errors when defining module</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667254#M5202</link>
      <description>&lt;P&gt;Merged the threads.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 18:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/667254#M5202</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-06T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675249#M5237</link>
      <description>If the problem is solved, please mark the correct solution and close this thread. Thanks.</description>
      <pubDate>Fri, 07 Aug 2020 14:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675249#M5237</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-07T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675373#M5238</link>
      <description>Thank you. I marked your answer as the solution. How do I close the thread?</description>
      <pubDate>Sat, 08 Aug 2020 09:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675373#M5238</guid>
      <dc:creator>SASingaKorean</dc:creator>
      <dc:date>2020-08-08T09:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Module is not defined due to resolution errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675374#M5239</link>
      <description>&lt;P&gt;Thanks for marking the correct answer. That is all you need to do.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 10:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Module-is-not-defined-due-to-resolution-errors/m-p/675374#M5239</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-08T10:06:20Z</dc:date>
    </item>
  </channel>
</rss>

