<?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 how to put a where statement in a merge in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-put-a-where-statement-in-a-merge/m-p/951688#M45584</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to put a where statement to reduce the size of one of the dataset.&lt;/P&gt;
&lt;P&gt;First question is it possible to do it and if so how?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dest1.&amp;amp;filename dest2.&amp;amp;filename._Anonym;
merge source4.&amp;amp;filename. (in=inbase)
src1.**bleep**rmt_in_premds_intg_20241031 (in=inlist) (where=(filename eq "&amp;amp;filename."))
;
by ORGNL_SAS_DS_ROW_NBR;
if inlist and inbase then output dest2.&amp;amp;filename._Anonym;
else if inbase then output dest1.&amp;amp;filename.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Nov 2024 22:43:22 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-11-22T22:43:22Z</dc:date>
    <item>
      <title>how to put a where statement in a merge</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-put-a-where-statement-in-a-merge/m-p/951688#M45584</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to put a where statement to reduce the size of one of the dataset.&lt;/P&gt;
&lt;P&gt;First question is it possible to do it and if so how?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dest1.&amp;amp;filename dest2.&amp;amp;filename._Anonym;
merge source4.&amp;amp;filename. (in=inbase)
src1.**bleep**rmt_in_premds_intg_20241031 (in=inlist) (where=(filename eq "&amp;amp;filename."))
;
by ORGNL_SAS_DS_ROW_NBR;
if inlist and inbase then output dest2.&amp;amp;filename._Anonym;
else if inbase then output dest1.&amp;amp;filename.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-put-a-where-statement-in-a-merge/m-p/951688#M45584</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-11-22T22:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a where statement in a merge</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-put-a-where-statement-in-a-merge/m-p/951689#M45585</link>
      <description>&lt;P&gt;You have the right idea, only the wrong syntax.&amp;nbsp; All of the dataset options appear in one set of ().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libref.memname(in=inlist where=(filename eq "&amp;amp;filename."))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2024 23:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-put-a-where-statement-in-a-merge/m-p/951689#M45585</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-11-22T23:01:51Z</dc:date>
    </item>
  </channel>
</rss>

