<?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: else if loop in SAS studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521264#M6727</link>
    <description>It’s not working for me&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Dec 2018 19:26:47 GMT</pubDate>
    <dc:creator>KatieMessi</dc:creator>
    <dc:date>2018-12-13T19:26:47Z</dc:date>
    <item>
      <title>else if loop in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521252#M6725</link>
      <description>&lt;P&gt;I'm using the online SAS Studio I'm trying to create a new variable while doing a then do loop but it doesn't seem to work, any suggestions?&lt;/P&gt;&lt;P&gt;This&amp;nbsp; is my code....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data golf;&lt;BR /&gt;	infile '/home/c153469110/golf.txt';&lt;BR /&gt;	input Distance_yards 18-22&lt;BR /&gt;		  Golfer_ID 28-29&lt;BR /&gt;		  Brand $ 39;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=golf;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Data golf;&lt;BR /&gt;&lt;BR /&gt;	 set golf;&lt;BR /&gt;	 &lt;BR /&gt;	 &lt;BR /&gt;	 &lt;BR /&gt;	 if Distance_Yards&amp;lt;290 then Distance_Catagory='Poor';&lt;BR /&gt;	 &lt;BR /&gt;	 else if Distance_Yards &amp;gt;=290 then Distance_Catagory='Average';&lt;BR /&gt;	&lt;BR /&gt;	 else if Distance_Yards &amp;gt;310 then Distance Catagory='Above Average';&lt;BR /&gt;	 &lt;BR /&gt;	 &lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 19:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521252#M6725</guid>
      <dc:creator>KatieMessi</dc:creator>
      <dc:date>2018-12-13T19:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: else if loop in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521259#M6726</link>
      <description>&lt;P&gt;Your third option will never be reached. Expand your second condition:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;else if Distance_Yards &amp;gt;=290  and Distance_Yards &amp;lt;= 310 then Distance_Catagory='Average';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Dec 2018 19:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521259#M6726</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-13T19:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: else if loop in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521264#M6727</link>
      <description>It’s not working for me&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2018 19:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521264#M6727</guid>
      <dc:creator>KatieMessi</dc:creator>
      <dc:date>2018-12-13T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: else if loop in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521270#M6728</link>
      <description>&lt;P&gt;It seems you have an invalid variable name, change the last assignment:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;then Distance_Catagory='Above Average';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the underline that replaces the blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that was not the reason,&amp;nbsp; be more specific what "does not work" and post the log. Use the {i} button for that.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 19:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/else-if-loop-in-SAS-studio/m-p/521270#M6728</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-13T19:43:22Z</dc:date>
    </item>
  </channel>
</rss>

