<?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: Errors from Proc iml in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187943#M304114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rick. The code now runs without errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 23:54:01 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2015-03-03T23:54:01Z</dc:date>
    <item>
      <title>Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187939#M304110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run the code from this paper &lt;A href="http://support.sas.com/resources/papers/proceedings14/2042-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/2042-2014.pdf&lt;/A&gt; with my own data(8 5-level Likert items) but there is errors. Variable &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'sumcor' seems like causing the problem. According to the paper, "Note that ∑ ∑ is just the sum of all values in the correlation matrix, since in a correlation matrix the diagonal elements are all 1, they sum to be the number of elements and the double sum adds up all off diagnonal elements (the correlations), note that each one would be repeated twice given the symmetry in the matrix."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I'm a novice user of proc iml and your help is greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have printed out a partial log output FYI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOGIC(CALCALPHA.VARLIST):&amp;nbsp; %DO loop index variable I is now 8; loop will iterate again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable I resolves to 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MLOGIC(CALCALPHA.VARLIST):&amp;nbsp; %DO loop index variable I is now 9; loop will not iterate again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA.VARLIST):&amp;nbsp; rAttitudes01 rAttitudes02 rAttitudes03 rAttitudes04 rAttitudes05 rAttitudes06 rAttitudes07 rAttitudes08&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MLOGIC(CALCALPHA.VARLIST):&amp;nbsp; Ending execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; } into itemcor;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable QS resolves to rAttitudes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; section="rAttitudes";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable CORDAT resolves to corrmatrix&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; datused="corrmatrix";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; numbitem=trace(itemcor);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; one=j(numbitem,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print 'The Input Correlation';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print itemcor;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print 'Number of items' numbitem;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; sumcor=(one)*itemcor*one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: (execution) Matrices do not conform to the operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; operation : * at line 4010 column 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; operands&amp;nbsp; : one, itemcor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;one&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 rows&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;itemcor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 rows&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 cols&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 0.999999 0.7418163 0.6005298 0.6328579 0.2149593 -0.085045 0.1591052 0.1087784&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.7418163&amp;nbsp; 0.999999 0.6696118&amp;nbsp; 0.639722 0.1674687 -0.127974 0.0821654 0.0697031&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.6005298 0.6696118&amp;nbsp; 0.999999 0.8357702 0.2290657 -0.118532&amp;nbsp; 0.136779&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1264&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.6328579&amp;nbsp; 0.639722 0.8357702&amp;nbsp; 0.999999 0.2232193 -0.166345 0.1338478&amp;nbsp; 0.137883&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.2149593 0.1674687 0.2290657 0.2232193&amp;nbsp; 0.999999 -0.136473 -0.047612 0.1070489&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; -0.085045 -0.127974 -0.118532 -0.166345 -0.136473&amp;nbsp; 0.999999 0.0824758 -0.076128&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.1591052 0.0821654&amp;nbsp; 0.136779 0.1338478 -0.047612 0.0824758&amp;nbsp; 0.999999&amp;nbsp; 0.080517&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; 0.1087784 0.0697031&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1264&amp;nbsp; 0.137883 0.1070489 -0.076128&amp;nbsp; 0.080517&amp;nbsp; 0.999999&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; statement : ASSIGN at line 4010 column 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; alpha=(numbitem/(numbitem-1))*(1-(numbitem / sumcor));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; operation : / at line 4010 column 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; operands&amp;nbsp; : numbitem, sumcor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;numbitem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 7.999992&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sumcor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (type ?, size 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; statement : ASSIGN at line 4010 column 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print alpha;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ERROR: Matrix alpha has not been set to a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; statement : PRINT at line 4010 column 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; L = eigval(itemcor);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; theta=(numbitem/(numbitem-1))*(1-1/L[1]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print 'Theta';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; print theta;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable OUT resolves to alpha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; create alpha var {section datused alpha theta};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; append;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable OUT resolves to alpha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; close alpha;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The data set WORK.ALPHA has 1 observations and 4 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Exiting IML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.06 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.06 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MPRINT(CALCALPHA):&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MLOGIC(CALCALPHA):&amp;nbsp; Ending execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 05:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187939#M304110</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2015-03-02T05:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187940#M304111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know anything about the paper nor the subject area, but I think I can tell you how to fix the problem.&lt;/P&gt;&lt;P&gt;The error message says that the ONE vector has 7 items, whereas the ITEMCOR matrix is 8x8.&amp;nbsp; The diagonal elements of ITEMCORR are not 1. They are 0.99999. Therefore when you compute numbitem=trace(itemcor), you get 7.9999, which gets truncated to 7 in the statement one=j(numbitem,1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you replace the statement numbitem=trace(itemcor) with the statement numbitem=ncol(itemcor).&lt;/P&gt;&lt;P&gt;That should fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could use itemcor = cov2corr(x) if you want to make sure that the ITEMCOR matrix is a real correlation matrix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 14:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187940#M304111</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-03-02T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187941#M304112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;Hi Rick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;Thanks for taking the time responding to my question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;The same errors are still there when I changed&lt;SPAN style="background-color: #ffffff;"&gt; numbitem=trace(itemcor)=&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; background-color: #ffffff;"&gt;7.999992 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt; background-color: #ffffff;"&gt;to numbitem=ncol(itemcor)=8.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When I tried&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; background-color: #ffffff;"&gt;itemcor=cov2corr(x), i&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; background-color: #ffffff;"&gt;t gives me &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; background-color: #ffffff;"&gt;ERROR: Invocation of unresolved module COV2CORR. I'm running SAS9.3TS Level 1M0 on W32_7PRO platform.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt; line-height: 1.5em; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;Thank you very much&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 00:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187941#M304112</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2015-03-03T00:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187942#M304113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;COV2CORR is a 9.4 function. &lt;/P&gt;&lt;P&gt;There is an error in the code that reads&lt;/P&gt;&lt;P&gt;sumcor=(one)*itemcor*one;&lt;/P&gt;&lt;P&gt;It looks like the GRAVE accent mark (`) got deleted, perhaps when you copied the program from the PDF. It should be&lt;/P&gt;&lt;P&gt;sumcor=(one`)*itemcor*one;&lt;/P&gt;&lt;P&gt;or even better&lt;/P&gt;&lt;P&gt;sumcor=sum(itemcor);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your life would be easier if the author posted her program to the SAS/IML File Exchange at: &lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.sas.com/sas-iml-file-exchange"&gt;http://communities.sas.com/sas-iml-file-exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you would not have to copy/paste from a PDF document where single and double quotes can get mangled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187942#M304113</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-03-03T17:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187943#M304114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rick. The code now runs without errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 23:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187943#M304114</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2015-03-03T23:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187944#M304115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir i am having the same problem;&lt;/P&gt;&lt;P&gt;I am doing AMMI analysis in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;489&amp;nbsp; proc iml;&lt;/P&gt;&lt;P&gt;NOTE: IML Ready&lt;/P&gt;&lt;P&gt;490&amp;nbsp; use outres2;&lt;/P&gt;&lt;P&gt;491&amp;nbsp; read all into reside;&lt;/P&gt;&lt;P&gt;492&amp;nbsp; ngen=nrow(resid);&lt;/P&gt;&lt;P&gt;493&amp;nbsp; nenv=ncol(resid);&lt;/P&gt;&lt;P&gt;494&amp;nbsp; use stats2;&lt;/P&gt;&lt;P&gt;495&amp;nbsp; read var {mse} into msem;&lt;/P&gt;&lt;P&gt;496&amp;nbsp; read var {dfe} into dfem;&lt;/P&gt;&lt;P&gt;497&amp;nbsp; use stats3;&lt;/P&gt;&lt;P&gt;498&amp;nbsp; read var {nrep} into nrep;&lt;/P&gt;&lt;P&gt;499&amp;nbsp; call svd (U, L, V, resid);&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : SVD at line 499 column 1&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : resid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (type ?, size 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : CALL at line 499 column 1&lt;/P&gt;&lt;P&gt;500&amp;nbsp; minimo=min(ngen,nenv);&lt;/P&gt;&lt;P&gt;501&amp;nbsp; L=L[1:Minimo,];&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : [ at line 501 column 4&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : L, *LIT1004, Minimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (type ?, size 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LIT1004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minimo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : ASSIGN at line 501 column 1&lt;/P&gt;&lt;P&gt;502&amp;nbsp; ss =(L ## 2)*nrep;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : ## at line 502 column 1&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : L, *LIT1005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (type ?, size 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LIT1005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : ASSIGN at line 502 column 1&lt;/P&gt;&lt;P&gt;503&amp;nbsp; suma=sum(ss);&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : SUM at line 503 column 9&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : ASSIGN at line 503 column 1&lt;/P&gt;&lt;P&gt;504&amp;nbsp; porcent=((1/suma) # ss)*100;&lt;/P&gt;&lt;P&gt;ERROR: (execution) Matrix has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; operation : / at line 504 column 12&lt;/P&gt;&lt;P&gt; operands&amp;nbsp; : *LIT1006, suma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LIT1006&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suma&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (type ?, size 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : ASSIGN at line 504 column 1&lt;/P&gt;&lt;P&gt;505&amp;nbsp; porcenta=0;&lt;/P&gt;&lt;P&gt;506&amp;nbsp; do i=1 to minimo;&lt;/P&gt;&lt;P&gt;507&amp;nbsp; df=(ngen-1)+(nenv-1)-(2*i-1);&lt;/P&gt;&lt;P&gt;508&amp;nbsp; dfa=dfa//df;&lt;/P&gt;&lt;P&gt;509&amp;nbsp; porceacu=porcent[i,];&lt;/P&gt;&lt;P&gt;510&amp;nbsp; porcenta=porcenta+porceacu;&lt;/P&gt;&lt;P&gt;511&amp;nbsp; porcenac=porcenac//porcenta;&lt;/P&gt;&lt;P&gt;512&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;513&amp;nbsp; options ps=5000 ls=78 nodate;&lt;/P&gt;&lt;P&gt;514&amp;nbsp; goptions device=cgmmwwc gsfname=biplot gsfmode=replace;&lt;/P&gt;&lt;P&gt;515&amp;nbsp; title1 'Analysis of Variance with the adjusted means';&lt;/P&gt;&lt;P&gt;516&amp;nbsp; title2 'no corrected by the number of replicates';&lt;/P&gt;&lt;P&gt;NOTE: Exiting IML.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:01:53.09&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:03.56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its the middle of code, i can send the whole code if needed ,&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 18:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187944#M304115</guid>
      <dc:creator>Sheraz</dc:creator>
      <dc:date>2015-05-07T18:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187945#M304116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your program has a typo. You are reading data into the vector RESIDE&amp;nbsp; (with an E at the end), but the remaining statements refer to the variable RESID (without an E). Change the second line of your program to&lt;/P&gt;&lt;P&gt;read all into resid;&amp;nbsp;&amp;nbsp; /* delete the 'e' */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187945#M304116</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-05-08T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187946#M304117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh thanks sir, that error is gone but i got new error.&lt;/P&gt;&lt;P&gt;I am doing AMMI (additive main effect and multiplicative analysis interaction) analysis which is frequently used in Agricultural sciences/plant breeding.&lt;/P&gt;&lt;P&gt;The code is available here on page 14&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.iasri.res.in/sscnars/genetics/04-SAS%20for%20statistical%20genetics.pdf" title="http://www.iasri.res.in/sscnars/genetics/04-SAS%20for%20statistical%20genetics.pdf"&gt;http://www.iasri.res.in/sscnars/genetics/04-SAS%20for%20statistical%20genetics.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you could spare a couple of minutes and have a look of this code. it would be great.&lt;/P&gt;&lt;P&gt;can it be solved ?&lt;/P&gt;&lt;P&gt;attached is error log.&lt;/P&gt;&lt;P&gt;i am a beginner and trying for so many days.&lt;/P&gt;&lt;P&gt;please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 13:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187946#M304117</guid>
      <dc:creator>Sheraz</dc:creator>
      <dc:date>2015-05-09T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Errors from Proc iml</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187947#M304118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are getting errors in a published macro, you should probably review the macro documentation and contact the person who wrote the macro if you still get errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your error log, it looks like you have defined the variable NAME in the NAMEG dataset to be a numerical variable.&lt;/P&gt;&lt;P&gt;However, in the NAMEE dataset you have defined NAME to be a character variable. Therefore SAS complains when you try to append the data with the statement&lt;/P&gt;&lt;P&gt;SET NAMEG NAMEE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-from-Proc-iml/m-p/187947#M304118</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-05-11T14:25:50Z</dc:date>
    </item>
  </channel>
</rss>

