<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266864#M52690</link>
    <description>&lt;P&gt;Sounds like you had an ERROR. Show the error from the Log and the code submitted that generated the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you had posted something like&lt;/P&gt;
&lt;P&gt;ERROR: You cannot open USER.JUNK.DATA for output access with member-level control because&lt;/P&gt;
&lt;P&gt;USER.JUNK.DATA is in use by you in resource environment ViewTable Window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we could likely have told you that you had the set or an explorer window about the contents open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 21:05:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-04-27T21:05:22Z</dc:date>
    <item>
      <title>else if</title>
      <link>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266818#M52664</link>
      <description>&lt;P&gt;What is wrong with this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Mite;&lt;/P&gt;
&lt;P&gt;Input obs &amp;nbsp;time;&lt;/P&gt;
&lt;P&gt;Cards;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 8&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; 14&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 17&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; 20&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data MItest;&lt;/P&gt;
&lt;P&gt;set MIte;&lt;/P&gt;
&lt;P&gt;if obs=&lt;STRONG&gt;0&lt;/STRONG&gt; then ttime=&lt;STRONG&gt;.&lt;/STRONG&gt;; else ttime=time;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266818#M52664</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2016-04-27T19:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: else if</title>
      <link>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266826#M52670</link>
      <description>&lt;P&gt;Nothings wrong, it runs without error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you think something is wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember we can't read your mind &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So if something unexpected is happening you need to explain what you expect and what isn't happening. Given what you've provided I have no idea what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1    Data Mite;
2    Input obs  time;
3    Cards;

NOTE: The data set WORK.MITE has 4 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.18 seconds
      cpu time            0.01 seconds


8    ;
9    Run;

10   data MItest;
11   set MIte;
12   if obs=0 then ttime=.; else ttime=time;
13   run;

NOTE: There were 4 observations read from the data set WORK.MITE.
NOTE: The data set WORK.MITEST has 4 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266826#M52670</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-27T19:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: else if</title>
      <link>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266845#M52682</link>
      <description>&lt;P&gt;There was no error, I had the data set opened,that is why&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266845#M52682</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2016-04-27T19:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: else if</title>
      <link>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266864#M52690</link>
      <description>&lt;P&gt;Sounds like you had an ERROR. Show the error from the Log and the code submitted that generated the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you had posted something like&lt;/P&gt;
&lt;P&gt;ERROR: You cannot open USER.JUNK.DATA for output access with member-level control because&lt;/P&gt;
&lt;P&gt;USER.JUNK.DATA is in use by you in resource environment ViewTable Window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we could likely have told you that you had the set or an explorer window about the contents open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 21:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/else-if/m-p/266864#M52690</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-27T21:05:22Z</dc:date>
    </item>
  </channel>
</rss>

