<?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 statement for alphanumeric in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784932#M39962</link>
    <description>Don't.&lt;BR /&gt;Use your original variable and your original method of filtering the data.</description>
    <pubDate>Wed, 08 Dec 2021 16:11:43 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-12-08T16:11:43Z</dc:date>
    <item>
      <title>WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784822#M39954</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;how would i do a where statement for an alphanumeric variable such as 2021Q2?&amp;nbsp; I just want to bring in data for 2021 Q2 and Q3:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table Q2Q3risk as &lt;BR /&gt;select&lt;BR /&gt;year_qtr,&lt;BR /&gt;count(distinct memberNo) as member_dist,&lt;BR /&gt;sum(riskTotal) as TotalRisk_Sum,&lt;BR /&gt;sum(riskScore) as riskScore_Sum,&lt;BR /&gt;sum(riskValueClosed) as riskValueClosed_Sum&lt;BR /&gt;from riskpull&lt;BR /&gt;where year_qtr in ('2021Q2','2021Q3')&lt;BR /&gt;group by year_qtr;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 06:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784822#M39954</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2021-12-08T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784823#M39955</link>
      <description>&lt;P&gt;Is year_qtr defined as character or numeric with a date format in your dataset? If it is character when your query should work OK. If it is numeric then try this using date constants:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where year_qtr in ('01Apr2021'd,'01Jul2021'd)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Dec 2021 06:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784823#M39955</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-12-08T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784848#M39956</link>
      <description>&lt;P&gt;Maxim3: Know Your Data.&lt;/P&gt;
&lt;P&gt;First, verify type and display format of year_qtr, and then, if it is numeric with a YYQ format, the actual&amp;nbsp;&lt;EM&gt;raw&lt;/EM&gt; values, as the dates might be&amp;nbsp;&lt;EM&gt;any&lt;/EM&gt; date within a quarter, so you must convert them to a new value first before you can use them for grouping in SQL.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 08:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784848#M39956</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-08T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784932#M39962</link>
      <description>Don't.&lt;BR /&gt;Use your original variable and your original method of filtering the data.</description>
      <pubDate>Wed, 08 Dec 2021 16:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784932#M39962</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-08T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784938#M39963</link>
      <description>Thank you!!!!</description>
      <pubDate>Wed, 08 Dec 2021 16:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784938#M39963</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2021-12-08T16:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784939#M39964</link>
      <description>&lt;P&gt;This worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 16:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784939#M39964</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2021-12-08T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784959#M39965</link>
      <description>Did you confirm this pulls all dates you need and not just those two dates? From your prior descriptions of your data this would not work correctly. &lt;BR /&gt;You won't get errors but you won't get the right answers.</description>
      <pubDate>Wed, 08 Dec 2021 18:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/784959#M39965</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-08T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE statement for alphanumeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/785487#M39974</link>
      <description>&lt;P&gt;it pulled all that were between those dates in Q2 and Q3&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 00:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/WHERE-statement-for-alphanumeric/m-p/785487#M39974</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2021-12-11T00:09:01Z</dc:date>
    </item>
  </channel>
</rss>

