<?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 while loop SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372531#M89080</link>
    <description>&lt;P&gt;What have you tried?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2017 12:43:52 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-07-02T12:43:52Z</dc:date>
    <item>
      <title>Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372529#M89078</link>
      <description>&lt;P&gt;I am stuck to this prob;em please help me out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bike deliver a milage of 20 miles per gallon. write a code in SAS so that the code stops generating observations when distance reaches 250 miles or when 10 gallons of fuel &amp;nbsp;have ben used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 12:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372529#M89078</guid>
      <dc:creator>Nishant_saxena</dc:creator>
      <dc:date>2017-07-02T12:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372531#M89080</link>
      <description>&lt;P&gt;What have you tried?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 12:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372531#M89080</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-07-02T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372552#M89093</link>
      <description>&lt;P&gt;Consider that you have a dataset with miles and you want to create a new dataset creating a new variable and if this new variable values reaches the 250 mark then you need to stop. Use the do until as i used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do miles=100 to 1000 by 50;
output;
end;
run;

data want;
do until(mile&amp;lt;=250);
set have;
mile=miles;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372552#M89093</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-07-02T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372554#M89095</link>
      <description>&lt;P&gt;This solution is exactly working&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 14:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372554#M89095</guid>
      <dc:creator>Nishant_saxena</dc:creator>
      <dc:date>2017-07-02T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372557#M89098</link>
      <description>&lt;P&gt;I was trying some stuff like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data milage;&lt;BR /&gt;do gallons= 1 to 10;&lt;BR /&gt;while(distance&amp;lt;250);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 15:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372557#M89098</guid>
      <dc:creator>Nishant_saxena</dc:creator>
      <dc:date>2017-07-02T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Do while loop SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372574#M89102</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;do you really need a loop ...&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;data want;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;set have (&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;where=(miles le 250));&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;mile=miles;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;If you don't want that new variable, don't use&lt;/FONT&gt;&lt;STRONG&gt; "mile=miles"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 16:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-while-loop-SAS/m-p/372574#M89102</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2017-07-02T16:24:32Z</dc:date>
    </item>
  </channel>
</rss>

