<?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 Please explain the error in the code in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88972#M3278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can someone please help me correct the error Im getting in the following code. Data set attached. thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I AM USING SAS 9.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2013 00:55:04 GMT</pubDate>
    <dc:creator>malakaext</dc:creator>
    <dc:date>2013-01-29T00:55:04Z</dc:date>
    <item>
      <title>Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88972#M3278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can someone please help me correct the error Im getting in the following code. Data set attached. thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I AM USING SAS 9.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 00:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88972#M3278</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2013-01-29T00:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88973#M3279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the error? What are you trying to do that isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 01:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88973#M3279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-29T01:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88974#M3280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry forgot to attach the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "F:\data\wvar.csv"&amp;nbsp; DSD MISSOVER;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&amp;nbsp; residuals;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;sig = 0;&lt;/P&gt;&lt;P&gt;_n_ =1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call symput('res',residuals);&lt;/P&gt;&lt;P&gt;y = symput('res');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_n_= _n_ +1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sig2 = 0.0000624 +&amp;nbsp; 0.1438*y*y +&amp;nbsp; 0.634*sig*sig;&lt;/P&gt;&lt;P&gt;sig = sqrt(sig2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=test1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE="F:\data\residuals.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=csv REPLACE;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 01:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88974#M3280</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2013-01-29T01:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88975#M3281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you explain what portion of your code is related to SAS/GRAPH or ODS GRAPHICS? This code is probably better posted in either the SAS Procedures forum or the Data Step and Macro Language forum. Since I do not see ANY graph procedures in your code, I don't understand why your posting is here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, many folks do not have SAS 9.0 to test with. For help with older versions of SAS, you may want to work with SAS Tech Support. You also may want to look at the syntax for CALL SYMPUT (which is something that the folks in the Macro forum could help with). I believe you have coded at least one statement with SYMPUT incorrectly. Also, you are using the DO incorrectly and should be getting error messages in your log. What are those error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would suggest that you collect this information and repost your question in the correct forum and not in the graphics forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 01:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88975#M3281</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-01-29T01:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88976#M3282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to explain your algorithm.&amp;nbsp; Basically you should get rid of any attempt to loop over the data. The basic data step will take care of that for you.&amp;nbsp; You should RETAIN the values that you want to carry forward (retain) to the next observation.&lt;/P&gt;&lt;P&gt;Your CSV file says the name of the variable is WVAR, so I have modified the code to use that name instead of RESIDUALS.&amp;nbsp; (not sure why it would be plural anyway).&lt;/P&gt;&lt;P&gt;You do not define Y in your program.&amp;nbsp; I have assumed it is yet another name for the data in the CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you want something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data test;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "F:\data\wvar.csv"&amp;nbsp; DSD MISSOVER firstobs=2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&amp;nbsp; wvar ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retain sig 0;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig2 = 0.0000624 +&amp;nbsp; 0.1438*wvar*wvar +&amp;nbsp; 0.634*sig*sig;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = sqrt(sig2);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 02:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88976#M3282</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-29T02:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain the error in the code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88977#M3283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. This helps a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Please-explain-the-error-in-the-code/m-p/88977#M3283</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2013-01-29T15:40:44Z</dc:date>
    </item>
  </channel>
</rss>

