<?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 question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351846#M81939</link>
    <description>&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am basic level programmer. Just have a quick question. what does&lt;STRONG&gt; output&lt;/STRONG&gt; do in this situation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;data lb;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set rawdata.lab;&lt;/P&gt;&lt;P&gt;if A&amp;nbsp;eq 1 or 2 or 3 then B= "DOSE ADMINISTRATION";&lt;BR /&gt;else " ";&lt;BR /&gt;output;&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 18:45:32 GMT</pubDate>
    <dc:creator>buddha_d</dc:creator>
    <dc:date>2017-04-20T18:45:32Z</dc:date>
    <item>
      <title>question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351846#M81939</link>
      <description>&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am basic level programmer. Just have a quick question. what does&lt;STRONG&gt; output&lt;/STRONG&gt; do in this situation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;data lb;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set rawdata.lab;&lt;/P&gt;&lt;P&gt;if A&amp;nbsp;eq 1 or 2 or 3 then B= "DOSE ADMINISTRATION";&lt;BR /&gt;else " ";&lt;BR /&gt;output;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351846#M81939</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2017-04-20T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351868#M81953</link>
      <description>&lt;P&gt;Get the syntax right with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lb;
set rawdata.lab;
if A in (1, 2, 3) then B= "DOSE ADMINISTRATION";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351868#M81953</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-04-20T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351873#M81957</link>
      <description>&lt;P&gt;For all intents in purposes in your example it does nothing. If there is no output statement in a data step one is assumed at the bottom of the code.&lt;/P&gt;
&lt;P&gt;You could test this by creating a small example input data set and running the code both with and without the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output is executeable. It will write the current state of the data vector to an output data set. So if you have multiple output statements you may generate multiple records from a single input record.&lt;/P&gt;
&lt;P&gt;Also you may specify the name of a data set that appears on the DATA statement (data setone settwo; specifies two data sets for example) to indicate which data set(s) get the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351873#M81957</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-20T19:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351876#M81959</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;U&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462" target="_self"&gt;PGStats&lt;/A&gt;&lt;/U&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_self"&gt;ballardw&lt;/A&gt;&amp;nbsp;for your suggestion. I appreciate it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351876#M81959</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2017-04-20T19:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351907#M81974</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139130"&gt;@buddha_d&lt;/a&gt;&amp;nbsp;Please mark the question as solved, not this post, but the one that answered your question.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351907#M81974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-20T20:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351910#M81975</link>
      <description>&lt;P&gt;I said not this post..... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351910#M81975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-20T20:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question/m-p/351911#M81976</link>
      <description>sorry I am not so got confused.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 20 Apr 2017 20:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question/m-p/351911#M81976</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2017-04-20T20:23:01Z</dc:date>
    </item>
  </channel>
</rss>

