<?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: Where clause doesn't work. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/671012#M23351</link>
    <description>Hi:&lt;BR /&gt;  This looks like a program from our Programming 1 class. We have a separate forum for the Programming 1 and Programming 2 classes, so student questions are monitored by the class instructors. In the future, you might want to consider posting class questions there. We need to know generally, what lesson you're working on and the title of the activity or practice you're working on. If you open a specific program file as a starter, that is useful to know too.&lt;BR /&gt;Cynthia&lt;BR /&gt;Here's the link for future reference to the forum for these classes: &lt;A href="https://communities.sas.com/t5/Programming-1-and-2/bd-p/course_discussions" target="_blank"&gt;https://communities.sas.com/t5/Programming-1-and-2/bd-p/course_discussions&lt;/A&gt;</description>
    <pubDate>Tue, 21 Jul 2020 14:46:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-07-21T14:46:39Z</dc:date>
    <item>
      <title>Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670852#M23332</link>
      <description>&lt;P&gt;SAS Studio doesn't filter it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Add a WHERE statement that uses the SUBSTR        *;&lt;BR /&gt;*       function to include rows where the second letter  *;&lt;BR /&gt;*       of Basin is P (Pacific ocean storms). &lt;/PRE&gt;
&lt;PRE&gt;&lt;BR /&gt;data pacific;&lt;BR /&gt;	set pg1.storm_summary;&lt;BR /&gt;	drop Type Hem_EW Hem_NS MinPressure Lat Lon;&lt;BR /&gt;    WHERE Substr(Basin, 2, 1) = "P";&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;It shows all the values for the column when I run this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;
&lt;P&gt;GN&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 01:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670852#M23332</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2020-07-21T01:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670854#M23333</link>
      <description>&lt;P&gt;Please show the log that results when you run the code.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 01:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670854#M23333</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-21T01:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670857#M23335</link>
      <description>&lt;P&gt;If this is literally what you did, end the last comment with a semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, you will find that a user error is *FAR* more likely than a major and central component of SAS not working.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 02:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670857#M23335</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-07-21T02:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670875#M23339</link>
      <description>&lt;P&gt;BTW, if you are looking at just a single character, then you might want to know about the CHAR function, as in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE char(Basin,2) = "P";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jul 2020 04:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670875#M23339</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-07-21T04:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670877#M23340</link>
      <description>&lt;P&gt;It may not hurt to show the &lt;STRONG&gt;code&lt;/STRONG&gt; you used to check on the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We get someone about once a week that "examines" the input data instead of the output data.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 05:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670877#M23340</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-21T05:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/671012#M23351</link>
      <description>Hi:&lt;BR /&gt;  This looks like a program from our Programming 1 class. We have a separate forum for the Programming 1 and Programming 2 classes, so student questions are monitored by the class instructors. In the future, you might want to consider posting class questions there. We need to know generally, what lesson you're working on and the title of the activity or practice you're working on. If you open a specific program file as a starter, that is useful to know too.&lt;BR /&gt;Cynthia&lt;BR /&gt;Here's the link for future reference to the forum for these classes: &lt;A href="https://communities.sas.com/t5/Programming-1-and-2/bd-p/course_discussions" target="_blank"&gt;https://communities.sas.com/t5/Programming-1-and-2/bd-p/course_discussions&lt;/A&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/671012#M23351</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-07-21T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/671239#M23368</link>
      <description>&lt;P&gt;Sorry, I don't have the code any longer.&lt;/P&gt;
&lt;P&gt;But I think I was wrong and where clause worked properly.&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;Guity&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 23:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/671239#M23368</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2020-07-21T23:51:40Z</dc:date>
    </item>
  </channel>
</rss>

