<?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: selecting certain observations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180380#M45971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did your code get cut off? I only see reference to one table but a LEFT JOIN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a filter to your join using ON/AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie &lt;/P&gt;&lt;P&gt;left join lookup &lt;/P&gt;&lt;P&gt;on distcode=dist_code AND&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; public=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 18:06:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-02-24T18:06:41Z</dc:date>
    <item>
      <title>selecting certain observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180379#M45970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm trying to add a contact name and email address to only observations that are public (Type=1)&amp;nbsp; (vs private (Type=2)). &lt;/P&gt;&lt;P&gt;I know how to add the observations using sql for all types but no for certain types.&lt;/P&gt;&lt;P&gt;I still want to keep the private facilities in the dataset but just want to add the admins to the public facilities&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;proc &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; admins &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; admin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;JOIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; distcode=dist_code&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Any help you can give is appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 17:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180379#M45970</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2015-02-24T17:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: selecting certain observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180380#M45971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did your code get cut off? I only see reference to one table but a LEFT JOIN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a filter to your join using ON/AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie &lt;/P&gt;&lt;P&gt;left join lookup &lt;/P&gt;&lt;P&gt;on distcode=dist_code AND&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; public=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 18:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180380#M45971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-24T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: selecting certain observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180381#M45972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp; you very much &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-observations/m-p/180381#M45972</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2015-02-24T19:24:02Z</dc:date>
    </item>
  </channel>
</rss>

