<?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 Between Dates in Proc Freq in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794096#M32789</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to filter the below data produced by Proc Freq between dates. My where statement below isn't working. Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title 'BSC Member_Bis Counts';&lt;BR /&gt;proc freq data=&amp;amp;Project..enrollment_bis_final_collapsed;&lt;BR /&gt;format mctr_based_prod_id $Product.;&lt;BR /&gt;ods output onewayfreqs=BSC_Enrollment_Count;&lt;BR /&gt;tables mctr_based_prod_id;&lt;BR /&gt;WHERE t1.TerminationDate BETWEEN &amp;amp;Term_st. AND &amp;amp;Term_ed.;&lt;BR /&gt;run;&lt;BR /&gt;Title;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 20:22:55 GMT</pubDate>
    <dc:creator>Jesusismygrace</dc:creator>
    <dc:date>2022-02-02T20:22:55Z</dc:date>
    <item>
      <title>Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794096#M32789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to filter the below data produced by Proc Freq between dates. My where statement below isn't working. Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title 'BSC Member_Bis Counts';&lt;BR /&gt;proc freq data=&amp;amp;Project..enrollment_bis_final_collapsed;&lt;BR /&gt;format mctr_based_prod_id $Product.;&lt;BR /&gt;ods output onewayfreqs=BSC_Enrollment_Count;&lt;BR /&gt;tables mctr_based_prod_id;&lt;BR /&gt;WHERE t1.TerminationDate BETWEEN &amp;amp;Term_st. AND &amp;amp;Term_ed.;&lt;BR /&gt;run;&lt;BR /&gt;Title;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 20:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794096#M32789</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2022-02-02T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794098#M32791</link>
      <description>&lt;P&gt;Using "isn't working" as your total description of a problem just .. "doesn't work".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What did you get vs what you expected?&amp;nbsp; Were there any error message on your sas log?&amp;nbsp; What does the log report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the log provided no error messages, what erroneous output did the PROC FREQ produce?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 20:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794098#M32791</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-02-02T20:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794101#M32792</link>
      <description>Assuming all your macro vars are set &amp;amp; you've defined your format $Product, looks like you are using SQL syntax for your where statement - you do not need the t1. if TerminationDate is in your data set &amp;amp;Project..enrollment_bis_final_collapsed.</description>
      <pubDate>Wed, 02 Feb 2022 20:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794101#M32792</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2022-02-02T20:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794102#M32793</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181364"&gt;@Jesusismygrace&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to filter the below data produced by Proc Freq between dates. My where statement below isn't working. Help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title 'BSC Member_Bis Counts';&lt;BR /&gt;proc freq data=&amp;amp;Project..enrollment_bis_final_collapsed;&lt;BR /&gt;format mctr_based_prod_id $Product.;&lt;BR /&gt;ods output onewayfreqs=BSC_Enrollment_Count;&lt;BR /&gt;tables mctr_based_prod_id;&lt;BR /&gt;WHERE t1.TerminationDate BETWEEN &amp;amp;Term_st. AND &amp;amp;Term_ed.;&lt;BR /&gt;run;&lt;BR /&gt;Title;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If TerminationDate is a variable in &amp;amp;Project..enrollment_bis_final_collapsed then you &lt;STRONG&gt;do not use T1. notation. &lt;/STRONG&gt; You should show your log with the error and the code and paste into a text box opened on the forum with the &amp;lt;/&amp;gt; icon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you do not show assignments for ANY of the macro variables can't tell if they are appropriate or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such as :&lt;/P&gt;
&lt;PRE&gt;272  proc freq data=sashelp.class;
273     where t1.sex in ('F' 'M');
              ------
              180
ERROR: Syntax error while parsing WHERE clause.
ERROR 180-322: Statement is not valid or it is used out of proper order.
274  run;
&lt;/PRE&gt;
&lt;P&gt;Dot notation in the middle of a procedure except in very few cases is right out. You would be wrong to include any reference to a data set as once you have a data set on the Proc statement that is the source of all variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 20:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794102#M32793</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-02T20:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794122#M32795</link>
      <description>Perfect! Thank you</description>
      <pubDate>Wed, 02 Feb 2022 21:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794122#M32795</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2022-02-02T21:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Between Dates in Proc Freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794123#M32796</link>
      <description>Thank you, Got it</description>
      <pubDate>Wed, 02 Feb 2022 21:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Between-Dates-in-Proc-Freq/m-p/794123#M32796</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2022-02-02T21:49:40Z</dc:date>
    </item>
  </channel>
</rss>

