<?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: do loops in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185377#M2233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post an example of the code you tested and a specific question about it.&lt;/P&gt;&lt;P&gt;A simple iterative DO loop like in your original question work the same as in any other language.&lt;/P&gt;&lt;P&gt;The DO statement in SAS actual has many variations and can be extremely powerful, but without more details of what you are trying to do it is hard to give specific advice.&lt;/P&gt;&lt;P&gt;Here is link to on-line document for the iterative form of DO.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm"&gt;SAS(R) 9.4 Statements: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Apr 2014 16:53:46 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-04-19T16:53:46Z</dc:date>
    <item>
      <title>do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185369#M2225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one explain do loop working sceneria in follwing citation&lt;/P&gt;&lt;P&gt;data xx;&lt;/P&gt;&lt;P&gt;do i= 01 to 04;&lt;/P&gt;&lt;P&gt;j=01 to 04;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 08:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185369#M2225</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-04-18T08:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185370#M2226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no "working scenario", because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;do i= 01 to 04;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;j=01 to 04;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;__&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;388&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;202&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 08:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185370#M2226</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-04-18T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185371#M2227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the program is either trying to do this:&lt;/P&gt;&lt;P&gt;data xx;&lt;/P&gt;&lt;P&gt;do i= 01 to 04;&lt;/P&gt;&lt;P&gt;j=i;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xx;&lt;/P&gt;&lt;P&gt;do i= 01 to 04;&lt;/P&gt;&lt;P&gt;do j= 01 to 04;&lt;/P&gt;&lt;P&gt;output;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 14:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185371#M2227</guid>
      <dc:creator>yeliu</dc:creator>
      <dc:date>2014-04-18T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185372#M2228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per the code provided by @yeliu , first the internal do loop of j will execute and then the outer loop of i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 14:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185372#M2228</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-04-18T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185373#M2229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for clarifying code however i am asking how works do loops in sas with diffrnc scenerios likewe put "output" after&amp;nbsp; "end"and before "end"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 13:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185373#M2229</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-04-19T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185374#M2230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just runs some test programs and find out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 13:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185374#M2230</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-19T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185375#M2231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had run some test programs but i can't understand do loop working method in sas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 14:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185375#M2231</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-04-19T14:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185376#M2232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one send link foe base do loops working method in&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 14:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185376#M2232</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-04-19T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: do loops</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185377#M2233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post an example of the code you tested and a specific question about it.&lt;/P&gt;&lt;P&gt;A simple iterative DO loop like in your original question work the same as in any other language.&lt;/P&gt;&lt;P&gt;The DO statement in SAS actual has many variations and can be extremely powerful, but without more details of what you are trying to do it is hard to give specific advice.&lt;/P&gt;&lt;P&gt;Here is link to on-line document for the iterative form of DO.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67175/HTML/default/viewer.htm#p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm"&gt;SAS(R) 9.4 Statements: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 16:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/do-loops/m-p/185377#M2233</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-19T16:53:46Z</dc:date>
    </item>
  </channel>
</rss>

