<?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: SAS 'where' expression to only select numeric variable MAR2019 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555112#M154467</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266226"&gt;@jeremy4&lt;/a&gt;&amp;nbsp; Sorry for the late entry, &lt;EM&gt;&lt;STRONG&gt;for what it's worth&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the expression also can be written as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where put(a.cards_2019,monyy7.)='MAR2019';&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 16:18:26 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-04-30T16:18:26Z</dc:date>
    <item>
      <title>SAS 'where' expression to only select numeric variable MAR2019</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555073#M154458</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to create a table that only pulls the result MAR2019 from the MTH_END variable. MTH_END is a numeric variable (shown by the screenshot below) and I have already successfully done a left join to connect two datasets - all of my proc sql code has worked without this extra condition that I want to include but I am not sure how to complete the line below (highlighted in red), given that MAR2019 is a mixture of components. Can someone please help with completing the line below ('a.cards_2019 is the dataset that I have already successfully referenced after doing the left join)? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;where a.cards_2019= &lt;U&gt;?????????????&lt;/U&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Month end 2019.PNG" style="width: 592px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29126i94852C093EF2C84E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Month end 2019.PNG" alt="Month end 2019.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555073#M154458</guid>
      <dc:creator>jeremy4</dc:creator>
      <dc:date>2019-04-30T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 'where' expression to only select numeric variable MAR2019</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555076#M154459</link>
      <description>&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;where a.cards_2019= &lt;/FONT&gt;21609;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555076#M154459</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-04-30T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 'where' expression to only select numeric variable MAR2019</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555077#M154460</link>
      <description>&lt;P&gt;If you want month-end values only:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where a.cards_2019='31mar2019'd;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you want the entire month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where '01mar2019'd &amp;lt;= a.cards_2019 &amp;lt;= '31mar2019'd;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Keep in mind that the &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000197959.htm" target="_self"&gt;MONYY7. Format&lt;/A&gt;&amp;nbsp;will display 01mar2019 the same as 31mar2019: &lt;STRONG&gt;MAR2019&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know is it makes sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555077#M154460</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-30T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 'where' expression to only select numeric variable MAR2019</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555094#M154464</link>
      <description>Thanks for your help!</description>
      <pubDate>Tue, 30 Apr 2019 15:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555094#M154464</guid>
      <dc:creator>jeremy4</dc:creator>
      <dc:date>2019-04-30T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 'where' expression to only select numeric variable MAR2019</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555112#M154467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266226"&gt;@jeremy4&lt;/a&gt;&amp;nbsp; Sorry for the late entry, &lt;EM&gt;&lt;STRONG&gt;for what it's worth&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the expression also can be written as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where put(a.cards_2019,monyy7.)='MAR2019';&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 16:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-where-expression-to-only-select-numeric-variable-MAR2019/m-p/555112#M154467</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-30T16:18:26Z</dc:date>
    </item>
  </channel>
</rss>

