<?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: Using a Date_Range Prompt in a Data Step SAS EG7.1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-a-Date-Range-Prompt-in-a-Data-Step-SAS-EG7-1/m-p/273462#M18962</link>
    <description>&lt;P&gt;Fixed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't realise I had left off the &amp;amp; in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and EVENT_DT bewteen &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;"&amp;amp;Date_Prompt_Min."d&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; and &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;"&amp;amp;Date_Prompt_Max."d&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;works now&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 01:47:34 GMT</pubDate>
    <dc:creator>DME790</dc:creator>
    <dc:date>2016-05-27T01:47:34Z</dc:date>
    <item>
      <title>Using a Date_Range Prompt in a Data Step SAS EG7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-a-Date-Range-Prompt-in-a-Data-Step-SAS-EG7-1/m-p/273454#M18959</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Prompt to select a date range and assigned it to a program. I am now having trouble assigning the date prompts to the data Step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Prompt.PNG" alt="Prompt.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/3351i8115093113958492/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my data step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;Data Work.CLK_Farmers_Assistance_Hotline;

Set CARTEL.Preagent_Telephony;

Keep Event_DT QUEUE_CD QUEUE Calls_entered_cnt calls_ANswered_CNT calls_abandoned_cnt Total_answer_tm;

Where QUEUE_CD in ('NAT_DRA' 'CLK_RUDA_DROUGHTASSIST')

 and EVENT_DT = '&amp;amp;Date_Range_Min' and EVENT_DT &amp;lt;='&amp;amp;Date_Range_Max';

Run;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I need to assign the date prompts to&amp;nbsp;EVENT_DT.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I select dates from the prompt and when the rest of the code runs I get the following error.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;37 and EVENT_DT = '&amp;amp;Date_Range_Min' and EVENT_DT &amp;lt;='&amp;amp;Date_Range_Max';&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have I used the correct code to use the selected dates form the prompt? What do i need to change&amp;nbsp;it to if I haven't?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 00:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-a-Date-Range-Prompt-in-a-Data-Step-SAS-EG7-1/m-p/273454#M18959</guid>
      <dc:creator>DME790</dc:creator>
      <dc:date>2016-05-27T00:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Date_Range Prompt in a Data Step SAS EG7.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-a-Date-Range-Prompt-in-a-Data-Step-SAS-EG7-1/m-p/273462#M18962</link>
      <description>&lt;P&gt;Fixed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't realise I had left off the &amp;amp; in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and EVENT_DT bewteen &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;"&amp;amp;Date_Prompt_Min."d&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; and &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;"&amp;amp;Date_Prompt_Max."d&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;works now&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 01:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-a-Date-Range-Prompt-in-a-Data-Step-SAS-EG7-1/m-p/273462#M18962</guid>
      <dc:creator>DME790</dc:creator>
      <dc:date>2016-05-27T01:47:34Z</dc:date>
    </item>
  </channel>
</rss>

