<?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 for merge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339992#M77646</link>
    <description>&lt;P&gt;This statement is wrong:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data final;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This tells SAS to create a data set named FINAL. &amp;nbsp;Later, you try to output observations into data sets that don't exist: &amp;nbsp;i3012 and i303. &amp;nbsp;The OUTPUT statements must reference data set names that appear on the DATA statement. &amp;nbsp;Most likely you need to change to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data i3012 i303;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, your logic will not observations that match. &amp;nbsp;For&amp;nbsp;any UPTID values that appear in both data sets, they do not get output at all.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2017 12:58:37 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-03-10T12:58:37Z</dc:date>
    <item>
      <title>output for merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339988#M77643</link>
      <description>&lt;P&gt;I want to create seperate outputs for if statement after merge&lt;/P&gt;&lt;P&gt;data final;&lt;BR /&gt;merge i301_302(in=a) inc1(in=b);&lt;BR /&gt;if a and not b then output i3012;&lt;BR /&gt;if b and not a then output i303;&lt;BR /&gt;by UPTID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this is not working. Can anyone help me if my datastep is wrong&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339988#M77643</guid>
      <dc:creator>alexdsa310</dc:creator>
      <dc:date>2017-03-10T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: output for merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339992#M77646</link>
      <description>&lt;P&gt;This statement is wrong:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data final;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This tells SAS to create a data set named FINAL. &amp;nbsp;Later, you try to output observations into data sets that don't exist: &amp;nbsp;i3012 and i303. &amp;nbsp;The OUTPUT statements must reference data set names that appear on the DATA statement. &amp;nbsp;Most likely you need to change to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data i3012 i303;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, your logic will not observations that match. &amp;nbsp;For&amp;nbsp;any UPTID values that appear in both data sets, they do not get output at all.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339992#M77646</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-10T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: output for merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339993#M77647</link>
      <description>&lt;P&gt;Read the log, it says it all:&lt;/P&gt;
&lt;PRE&gt;ERROR 455-185: Data set was not specified on the DATA statement.&lt;/PRE&gt;
&lt;P&gt;You can only output to datasets that have been specified in the data statement.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-for-merge/m-p/339993#M77647</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-10T12:58:58Z</dc:date>
    </item>
  </channel>
</rss>

