<?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: Output in Data Step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71797#M15533</link>
    <description>Hi:&lt;BR /&gt;
  Sorry, I always think that folks know that the doc is organized by topics and that they know the topics can be searched from the search box at the top of the support.sas.com page. I mean this documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000194540.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000194540.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia &lt;BR /&gt;
&lt;BR /&gt;
( you may need a profile in order to navigate the on-line doc)&lt;BR /&gt;
 &lt;BR /&gt;
Product Documentation &lt;BR /&gt;
--&amp;gt; SAS 9.2 Documentation&lt;BR /&gt;
--&amp;gt; SAS(R) 9.2 Language Reference: Dictionary&lt;BR /&gt;
--&amp;gt; Dictionary of Language Elements&lt;BR /&gt;
--&amp;gt; Statements&lt;BR /&gt;
--&amp;gt; OUTPUT Statement</description>
    <pubDate>Fri, 30 Jan 2009 18:34:04 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-01-30T18:34:04Z</dc:date>
    <item>
      <title>Output in Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71793#M15529</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
The code below comes from a data step.  Can someone tell me what the 'output' does?  &lt;BR /&gt;
&lt;BR /&gt;
IF STAFFID1 ¬= ' ' THEN DO;&lt;BR /&gt;
   CNTL = ENTITYID||STAFFID1;&lt;BR /&gt;
   STAFF = STAFFID1; OUTPUT; END;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!</description>
      <pubDate>Thu, 29 Jan 2009 21:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71793#M15529</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-01-29T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Output in Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71794#M15530</link>
      <description>Hi:&lt;BR /&gt;
  I'd suggest you look for this documentation topic:&lt;BR /&gt;
&lt;B&gt;STATEMENTS: Output Statement&lt;/B&gt; which explains (in short) that the OUTPUT statement: "Writes the current observation to a SAS data set." The doc has a lengthy explanation and at least 4 examples of using the OUTPUT statement.&lt;BR /&gt;
&lt;BR /&gt;
If the OUTPUT statement is placed inside an IF statement, then the OUTPUT statement will be executed conditionally (and, thus, write observations conditionally). Depending on how many OUTPUT statements you have inside IF statements in the whole program, you might see a different number of observations coming OUT of the DATA step program than the number of observations that are being read INTO your program.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 29 Jan 2009 23:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71794#M15530</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-01-29T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Output in Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71795#M15531</link>
      <description>Hi Kevin,&lt;BR /&gt;
&lt;BR /&gt;
      The If statement take the  STAFFID1 variable values is blank values and in the output it will creates the two variables are CNTL and STAFF , and the values of the STAFF is Blank and CNTL variable contains the concate vaules of ENTITY and STAFFID1.Here You will get the ENTITY values only. &lt;BR /&gt;
&lt;BR /&gt;
bye..&lt;BR /&gt;
&lt;BR /&gt;
Thanks &amp;amp; Regards&lt;BR /&gt;
RAJESH.K</description>
      <pubDate>Fri, 30 Jan 2009 04:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71795#M15531</guid>
      <dc:creator>K_rn_tiR_jesh</dc:creator>
      <dc:date>2009-01-30T04:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output in Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71796#M15532</link>
      <description>Thank you both.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia,&lt;BR /&gt;
Are you refering to any particular documentation on this site ?&lt;BR /&gt;
&lt;BR /&gt;
Thank you!!</description>
      <pubDate>Fri, 30 Jan 2009 14:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71796#M15532</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-01-30T14:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Output in Data Step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71797#M15533</link>
      <description>Hi:&lt;BR /&gt;
  Sorry, I always think that folks know that the doc is organized by topics and that they know the topics can be searched from the search box at the top of the support.sas.com page. I mean this documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000194540.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000194540.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia &lt;BR /&gt;
&lt;BR /&gt;
( you may need a profile in order to navigate the on-line doc)&lt;BR /&gt;
 &lt;BR /&gt;
Product Documentation &lt;BR /&gt;
--&amp;gt; SAS 9.2 Documentation&lt;BR /&gt;
--&amp;gt; SAS(R) 9.2 Language Reference: Dictionary&lt;BR /&gt;
--&amp;gt; Dictionary of Language Elements&lt;BR /&gt;
--&amp;gt; Statements&lt;BR /&gt;
--&amp;gt; OUTPUT Statement</description>
      <pubDate>Fri, 30 Jan 2009 18:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-in-Data-Step/m-p/71797#M15533</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-01-30T18:34:04Z</dc:date>
    </item>
  </channel>
</rss>

