<?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: creating a prompt using a string in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291975#M19930</link>
    <description>&lt;P&gt;Try it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - Create your prompt as a date type and variable name DateRef.&lt;/P&gt;
&lt;P&gt;2 - Change your variable from string to sas date format using a %let command. %let DateRef = %sysevalf("&amp;amp;DateRef"d);&lt;/P&gt;
&lt;P&gt;3 - Use your var &amp;amp;DateRef!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 19:21:37 GMT</pubDate>
    <dc:creator>AirtonNunes</dc:creator>
    <dc:date>2016-08-16T19:21:37Z</dc:date>
    <item>
      <title>creating a prompt using a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291900#M19921</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping someone would be able to help me figure out how to create a prompt that is a string. In one of the tables I use the date is fromatted as a string and is always in the following format YYYY-MM-DD. I would like to creat prompts so I do not have to go itno each query and change the filter. When I tried creating the prompt for the date field and it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to make this work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 13:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291900#M19921</guid>
      <dc:creator>sheller</dc:creator>
      <dc:date>2016-08-16T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: creating a prompt using a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291932#M19928</link>
      <description>&lt;P&gt;It doesn't hurt to mention which version of EG you are using as options may vary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Describe in some detail how you created the prompt for the date and what symptoms that "it doesn't seem to work".&lt;/P&gt;
&lt;P&gt;Can you echo the value of the prompt and does it look correct?&lt;/P&gt;
&lt;P&gt;Did you try to make it a SAS date value? If the dates in your data are string then any comparisons with SAS date values will likely fail.&lt;/P&gt;
&lt;P&gt;Or vice versa, if your prompt is a string of that format and your SAS data has date values there isn't any easy way to compare.&lt;/P&gt;
&lt;P&gt;How are you using the prompt?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 15:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291932#M19928</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-16T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: creating a prompt using a string</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291975#M19930</link>
      <description>&lt;P&gt;Try it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - Create your prompt as a date type and variable name DateRef.&lt;/P&gt;
&lt;P&gt;2 - Change your variable from string to sas date format using a %let command. %let DateRef = %sysevalf("&amp;amp;DateRef"d);&lt;/P&gt;
&lt;P&gt;3 - Use your var &amp;amp;DateRef!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-a-prompt-using-a-string/m-p/291975#M19930</guid>
      <dc:creator>AirtonNunes</dc:creator>
      <dc:date>2016-08-16T19:21:37Z</dc:date>
    </item>
  </channel>
</rss>

