<?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: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted stringa numeric constant, a datetime constant, a missing value in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160940#M1504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't like the square brackets.&amp;nbsp; Why are they there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 00:50:45 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-09-26T00:50:45Z</dc:date>
    <item>
      <title>ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted stringa numeric constant, a datetime constant, a missing value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160939#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish to ask if any can help correct the bold section of the code below????&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt; A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt; n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#[cdf("Normal", x-10)-cdf("Normal", x-4)]*exp(-x) );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;answer = j(nrow(DM),1);&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(result, "Func", A&lt;I&gt; || B&lt;I&gt;,);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;answer&lt;I&gt; = result;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 22:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160939#M1503</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-25T22:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted stringa numeric constant, a datetime constant, a missing value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160940#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't like the square brackets.&amp;nbsp; Why are they there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160940#M1504</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-26T00:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted stringa numeric constant, a datetime constant, a missing value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160941#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, This works,&lt;/P&gt;&lt;P&gt;Data sim;&lt;/P&gt;&lt;P&gt;Input A B;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 7&lt;/P&gt;&lt;P&gt;3 10&lt;/P&gt;&lt;P&gt;4 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;use sim;&lt;/P&gt;&lt;P&gt;read all&amp;nbsp; var{A B} into DM;&lt;/P&gt;&lt;P&gt;close;&lt;/P&gt;&lt;P&gt;A = DM[,1]; B = DM[,2];&lt;/P&gt;&lt;P&gt;n = nrow(DM);&lt;/P&gt;&lt;P&gt;start Func(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return(&amp;nbsp; exp(2-x)#(cdf("Normal", x-10)-cdf("Normal", x-4))*exp(-x) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;answer = j(nrow(DM),1);&lt;/P&gt;&lt;P&gt;do i = 1 to nrow(DM);&lt;/P&gt;&lt;P&gt;call quad(result, "Func", A&lt;I&gt; || B&lt;I&gt;,);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;answer&lt;I&gt; = result;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;create kaplan1n var{A&amp;nbsp; B Answer };&lt;/P&gt;&lt;P&gt;append;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 02:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160941#M1505</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-26T02:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted stringa numeric constant, a datetime constant, a missing value</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160942#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 03:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/160942#M1506</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2014-09-26T03:14:11Z</dc:date>
    </item>
  </channel>
</rss>

