<?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 Do-loop question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399047#M96600</link>
    <description>&lt;P&gt;The following SAS program is submitted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data WORK.SALES;&lt;/P&gt;&lt;P&gt;do Year=1 to 5;&lt;/P&gt;&lt;P&gt;do Month=1 to 12;&lt;/P&gt;&lt;P&gt;X+1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How many obersevations are written to the WORK.SALES data set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Answer is 1. Is it because there is no 'output' stated in the code thats why it did not give individual value for each month, the 1 observation is the sum of individual months up to 5 years? Please help, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 06:48:17 GMT</pubDate>
    <dc:creator>pchen002</dc:creator>
    <dc:date>2017-09-27T06:48:17Z</dc:date>
    <item>
      <title>Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399047#M96600</link>
      <description>&lt;P&gt;The following SAS program is submitted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data WORK.SALES;&lt;/P&gt;&lt;P&gt;do Year=1 to 5;&lt;/P&gt;&lt;P&gt;do Month=1 to 12;&lt;/P&gt;&lt;P&gt;X+1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How many obersevations are written to the WORK.SALES data set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Answer is 1. Is it because there is no 'output' stated in the code thats why it did not give individual value for each month, the 1 observation is the sum of individual months up to 5 years? Please help, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 06:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399047#M96600</guid>
      <dc:creator>pchen002</dc:creator>
      <dc:date>2017-09-27T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399050#M96603</link>
      <description>&lt;P&gt;Without OUTPUT staement it iterates to up the end and outputs one observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding&amp;nbsp;OUTPUT staemant will result in 1 or 5 or 60 (=5*12) depending after which line it is entered.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 07:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399050#M96603</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-27T07:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Do-loop question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399051#M96604</link>
      <description>understood, thanks!!!!</description>
      <pubDate>Wed, 27 Sep 2017 07:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-question/m-p/399051#M96604</guid>
      <dc:creator>pchen002</dc:creator>
      <dc:date>2017-09-27T07:20:03Z</dc:date>
    </item>
  </channel>
</rss>

