<?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: Data step flow in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301293#M63724</link>
    <description>&lt;P&gt;Thanks for your remainding!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2016 14:13:37 GMT</pubDate>
    <dc:creator>shengnian</dc:creator>
    <dc:date>2016-09-28T14:13:37Z</dc:date>
    <item>
      <title>Data step flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301066#M63667</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am learning SAS data setp flow recently, and I found a interesting question. Please see the following programs. The only difference between &lt;FONT color="#FF0000"&gt;data bb &lt;FONT color="#000000"&gt;and&lt;/FONT&gt; data cc &lt;FONT color="#000000"&gt;is that "&lt;SPAN&gt; put _all_&lt;/SPAN&gt;"&amp;nbsp;was&amp;nbsp;a comment statement in&lt;FONT color="#FF0000"&gt; data bb&lt;FONT color="#000000"&gt;, which &amp;nbsp;was not in &lt;FONT color="#FF0000"&gt;data cc&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;However, it made a big difference to the result.&amp;nbsp;I could underatand the number of dataset bb is zero, but I wonder what happened to dataset cc. &amp;nbsp;Can someone explain it? &amp;nbsp;Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data aa;&lt;BR /&gt; do A = 1 to 20;&lt;BR /&gt; output;&lt;BR /&gt; B = A;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data bb;&lt;BR /&gt;do until (i &amp;gt;= 5);&lt;BR /&gt; set aa;&lt;BR /&gt;/* put _all_*/&lt;BR /&gt; i = _N_;&lt;BR /&gt; i + 1;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cc;&lt;BR /&gt;do until (i &amp;gt;= 5);&lt;BR /&gt; set aa;&lt;BR /&gt; put _all_&lt;BR /&gt; i = _N_;&lt;BR /&gt; i + 1;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301066#M63667</guid>
      <dc:creator>shengnian</dc:creator>
      <dc:date>2016-09-27T16:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data step flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301071#M63668</link>
      <description>&lt;P&gt;If the code you ran is exactly as posted you get a difference because the Put _all_ does not have a ; at the end and the next line i=_n_ is considered part of the PUT instruction.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301071#M63668</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-27T16:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data step flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301094#M63673</link>
      <description>&lt;P&gt;You are right, I have noticed it yet. Thanks very much!&amp;nbsp;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://communities.sas.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301094#M63673</guid>
      <dc:creator>shengnian</dc:creator>
      <dc:date>2016-09-27T18:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data step flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301101#M63676</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14254"&gt;@shengnian﻿&lt;/a&gt;, please mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;'s answer as Accepted.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301101#M63676</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-27T18:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data step flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301293#M63724</link>
      <description>&lt;P&gt;Thanks for your remainding!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 14:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-flow/m-p/301293#M63724</guid>
      <dc:creator>shengnian</dc:creator>
      <dc:date>2016-09-28T14:13:37Z</dc:date>
    </item>
  </channel>
</rss>

