<?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: calling data in an excel file into a do loop in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109711#M4113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks as if all resq values were missing from your &lt;STRONG&gt;test&lt;/STRONG&gt; dataset : all variables that are calculated from the resq are missing in your output. In my tests (with SAS version 9.3, but we are not using any recent feature of the language) none of the columns contain missing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2012 02:45:19 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-10-28T02:45:19Z</dc:date>
    <item>
      <title>calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109700#M4102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data set "test" contains two cloums return and RESQ each column has a 1000 values.&lt;/P&gt;&lt;P&gt;I need to access these 1000 values of RESQ in the do loop given in the program(sig2 = resq +&amp;nbsp; b*sig*sig;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with this. (data set test is attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&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\test.csv"&amp;nbsp; DSD MISSOVER;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&amp;nbsp; return resq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sim;&lt;/P&gt;&lt;P&gt;a=0.3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sig = 1.0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do j = 1 to 1000;&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; v = rannor(123457);&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; z = v;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epsi = z*sig;&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; sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = sqrt(sig2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 00:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109700#M4102</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T00:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109701#M4103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply read dataset test when creating dataset sim :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;infile "F:\data\test.csv"&amp;nbsp; firstobs=2 DSD MISSOVER;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;input&amp;nbsp; return resq;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data sim;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;retain a 0.3 sig 1.0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;set test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;v = rannor(123457);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;z = v;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;epsi = z*sig;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;sig = sqrt(sig2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to add &lt;STRONG&gt;(keep=...)&lt;/STRONG&gt; option to dataset sim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 00:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109701#M4103</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-28T00:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109702#M4104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to call entries in test one by one in the DO LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have give above is missing the do loop and the out put is in complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109702#M4104</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T01:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109703#M4105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many observations should have in your finale dataset? 1000*1000?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109703#M4105</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-28T01:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109704#M4106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a 1000 values for "epsi"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; epsi = z*sig;&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; sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the program does is creating a 1000 epsi values from the do loop.&lt;/P&gt;&lt;P&gt;Since epsi = Z* sig and sig = SQRT(sig2) you need to use resq data one by one in &lt;STRONG&gt;sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109704#M4106</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T01:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109705#M4107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Linlins' guess is right, and you want to always start your iterations with the same values for &lt;STRONG&gt;a&lt;/STRONG&gt; and &lt;STRONG&gt;sig&lt;/STRONG&gt;, then you should use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;data sim;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;a = 0.3;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt; sig = 1.0;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;do i = 1 to 1000;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v = rannor(123457);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z = v;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; epsi = z*sig;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = sqrt(sig2);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will give you 1000 observations for each obs in dataset test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109705#M4107</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-28T01:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109706#M4108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be my explanation was not clear. So LET ME TRY AGAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need just a 1000 epsi values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to calculate the 2nd epsi value you need the 2nd entry in the data set TEST.&lt;/P&gt;&lt;P&gt;to calculate the 3rd epsi value you need the 3rd entry in the data set TEST.&lt;/P&gt;&lt;P&gt;to calculate the 4th epsi value you need the 4th entry in the data set TEST.&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you dont have to use the 1st value of the data set TEST since you initially assign sig= 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for all your help. I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109706#M4108</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T01:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109707#M4109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I don't understand what was missing from my original solution. Did you try running it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109707#M4109</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-28T01:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109708#M4110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did.. but the output I got was incomplete.. I have attached it here so that you can also see it. Im using SAS 9.&lt;IMG alt="output.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2657_output.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 01:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109708#M4110</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109709#M4111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attached is the output dataset from PG's code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 02:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109709#M4111</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-28T02:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109710#M4112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me how to write that to an excel sheet please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following code but it gave me incomplete results.. Is it because the version I use is 9.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile "F:\data\test.csv"&amp;nbsp; firstobs=2 DSD MISSOVER;&lt;/P&gt;&lt;P&gt;input&amp;nbsp; return resq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sim;&lt;/P&gt;&lt;P&gt;retain a 0.3 sig 1.0;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;v = rannor(123457);&lt;/P&gt;&lt;P&gt;z = v;&lt;/P&gt;&lt;P&gt;epsi = z*sig;&lt;/P&gt;&lt;P&gt;sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/P&gt;&lt;P&gt;sig = sqrt(sig2);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME dat "c:\sas\data\";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sim&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\e.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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 02:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109710#M4112</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T02:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109711#M4113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks as if all resq values were missing from your &lt;STRONG&gt;test&lt;/STRONG&gt; dataset : all variables that are calculated from the resq are missing in your output. In my tests (with SAS version 9.3, but we are not using any recent feature of the language) none of the columns contain missing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 02:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109711#M4113</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-28T02:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109712#M4114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the number 1000 have to do with the problem?&lt;/P&gt;&lt;P&gt;If you have a dataset and you want to apply a formula to the values of the variables in it a normal data step will process all of the observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data sim;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; retain a 0.3 sig 1.0 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; z = rannor(123457);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; epsi = z*sig;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; sig = sqrt(sig2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 02:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109712#M4114</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-28T02:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109713#M4115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the output file. Can you please tell me why it it incomplete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im new to SAS. Can you also tell me if your code changes the sig value in each step. Because I use sig=1 only for the first calculation. starting from the second epsi value it should use SQRT( sig2) which is affected by each resq value in the data set TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109713#M4115</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T03:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109714#M4116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the TEST file I have attached, resq values arn't missing!!! May be it's the version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109714#M4116</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T03:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109715#M4117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code below created the attached csv file. Please change the directory. The value of sig changes from Obs. to Obs.&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile "&lt;SPAN style="color: #ff0000;"&gt;c:\temp\forum&lt;/SPAN&gt;\test.csv"&amp;nbsp; firstobs=2 DSD MISSOVER;&lt;/P&gt;&lt;P&gt;input&amp;nbsp; return resq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sim;&lt;/P&gt;&lt;P&gt;retain a 0.3 sig 1.0;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;v = rannor(123457);&lt;/P&gt;&lt;P&gt;z = v;&lt;/P&gt;&lt;P&gt;epsi = z*sig;&lt;/P&gt;&lt;P&gt;sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/P&gt;&lt;P&gt;sig = sqrt(sig2);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sim&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=&lt;SPAN style="color: #ff0000;"&gt;"c\temp\forum&lt;/SPAN&gt;\e.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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109715#M4117</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-28T03:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109716#M4118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Linlin. your help is really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109716#M4118</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T03:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109717#M4119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest running everything, from the import to exporting the output, and post your log here.&amp;nbsp; The log may show where the problem is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109717#M4119</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-28T03:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109718#M4120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1869&amp;nbsp; data test;&lt;/P&gt;&lt;P&gt;1870&amp;nbsp; infile "F:\data\test.csv"&amp;nbsp; firstobs=2 DSD MISSOVER;&lt;/P&gt;&lt;P&gt;1871&amp;nbsp; input&amp;nbsp; return resq;&lt;/P&gt;&lt;P&gt;1872&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The infile "F:\data\test.csv" is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File Name=F:\data\test.csv,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: 1000 records were read from the infile "F:\data\test.csv".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 12.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.TEST has 1000 observations and 2 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement 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; 0.02 seconds&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; 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1873&lt;/P&gt;&lt;P&gt;1874&amp;nbsp; data sim;&lt;/P&gt;&lt;P&gt;1875&lt;/P&gt;&lt;P&gt;1876&amp;nbsp;&amp;nbsp;&amp;nbsp; retain a 0.3 sig 1.0 ;&lt;/P&gt;&lt;P&gt;1877&lt;/P&gt;&lt;P&gt;1878&amp;nbsp;&amp;nbsp;&amp;nbsp; set test nobs=nobs ;&lt;/P&gt;&lt;P&gt;1879&lt;/P&gt;&lt;P&gt;1880&amp;nbsp;&amp;nbsp;&amp;nbsp; z = rannor(123457);&lt;/P&gt;&lt;P&gt;1881&lt;/P&gt;&lt;P&gt;1882&amp;nbsp;&amp;nbsp;&amp;nbsp; epsi = z*sig;&lt;/P&gt;&lt;P&gt;1883&lt;/P&gt;&lt;P&gt;1884&amp;nbsp;&amp;nbsp;&amp;nbsp; sig2 = resq +&amp;nbsp; a*sig*sig;&lt;/P&gt;&lt;P&gt;1885&lt;/P&gt;&lt;P&gt;1886&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = sqrt(sig2);&lt;/P&gt;&lt;P&gt;1887&lt;/P&gt;&lt;P&gt;1888&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &lt;STRONG&gt;Missing values were generated as a result of performing an operation on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; missing values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Each place is given by: (Number of times) at (Line):(Column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 999 at 1882:11&amp;nbsp;&amp;nbsp; 1 at 1884:15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 999 at 1884:19&amp;nbsp;&amp;nbsp; 1000 at 1886:9&lt;/P&gt;&lt;P&gt;NOTE: There were 1000 observations read from the data set WORK.TEST.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.SIM has 1000 observations and 7 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement 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; 0.05 seconds&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; 0.03 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 03:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109718#M4120</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-28T03:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: calling data in an excel file into a do loop</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109719#M4121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file you are initially reading is not the one you originally posted.&amp;nbsp; When I read it my log shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your log shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We both used the same code, thus I have to think we are not reading the same file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 04:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/calling-data-in-an-excel-file-into-a-do-loop/m-p/109719#M4121</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-28T04:20:51Z</dc:date>
    </item>
  </channel>
</rss>

