<?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 Invalid date/time/datetime constant using prompt in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459651#M29602</link>
    <description>&lt;P&gt;Hey folks. I joined this board specifically because of this issue. I can't a get query to resolve referencing a date prompt using "&amp;amp;EndMonthDate"d. I'm getting the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas error.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20336iE65BF5F71518613B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas error.PNG" alt="sas error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any help would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 14:00:29 GMT</pubDate>
    <dc:creator>BNK720</dc:creator>
    <dc:date>2018-05-03T14:00:29Z</dc:date>
    <item>
      <title>Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459651#M29602</link>
      <description>&lt;P&gt;Hey folks. I joined this board specifically because of this issue. I can't a get query to resolve referencing a date prompt using "&amp;amp;EndMonthDate"d. I'm getting the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas error.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20336iE65BF5F71518613B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas error.PNG" alt="sas error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459651#M29602</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459655#M29603</link>
      <description>&lt;P&gt;The warning is telling you that in that SAS session there is no macro variable called EndMonthDate.&amp;nbsp; Not sure what else we can say other than check where it is being created, maybe you missed a %let statement, or something else is not included or setup??&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 13:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459655#M29603</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-03T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459662#M29605</link>
      <description>&lt;P&gt;Forgive my novice, but how else do you create a macro variable? Is a prompt sufficient? Because it has been created and is in use throughout other parts of the project.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459662#M29605</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459665#M29606</link>
      <description>&lt;P&gt;What value was actually entered for the prompt? Was something actually entered or selected for the propmpt?&lt;/P&gt;
&lt;P&gt;Your code implies that the value entered should be a date. The prompt would have to be of the form ddmonyy or ddmonyyyy such as&lt;/P&gt;
&lt;P&gt;05May2018 or 5May18. No spaces, no other&amp;nbsp;format like 5/5/2018, no punctuation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459665#M29606</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-03T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459666#M29607</link>
      <description>&lt;P&gt;Did you right-click on your program, select Properties &amp;gt; Prompts, and add your prompt to be used by the program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459666#M29607</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-05-03T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459667#M29608</link>
      <description>&lt;P&gt;You can create macro variables in many ways, the simplest of which is:&lt;/P&gt;
&lt;PRE&gt;%let &amp;lt;macrovariable&amp;gt;=&amp;lt;some text&amp;gt;;&lt;/PRE&gt;
&lt;P&gt;But anyway, you have created a prompt within the code you are working with, or made the prompt response available to your code, and you are sure its called EndMonthDate?&amp;nbsp; All I have to go on is the warning, and that is clearly stating that does not exist, so either its not called that, or not available in the session you are running the given code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459667#M29608</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-03T14:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459683#M29609</link>
      <description>&lt;P&gt;It's in a query &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query pic.PNG" style="width: 80px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20338iB5DFF72B548540CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="query pic.PNG" alt="query pic.PNG" /&gt;&lt;/span&gt;not a program&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="program pic.PNG" style="width: 84px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20340i33C76409842B2635/image-size/large?v=v2&amp;amp;px=999" role="button" title="program pic.PNG" alt="program pic.PNG" /&gt;&lt;/span&gt; I've written programs but I'm no expert. I don't see where I can add a prompt to a query. Please advise...&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459683#M29609</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459685#M29610</link>
      <description>&lt;P&gt;Here's an image of my prompt window:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pompt pic.PNG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20341i9B43B828E87AF029/image-size/large?v=v2&amp;amp;px=999" role="button" title="pompt pic.PNG" alt="pompt pic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459685#M29610</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459692#M29611</link>
      <description>&lt;P&gt;It's a GUI created prompt. I don't have the option of choosing a date format. So I assume SAS EG is selecting the appropriate formatting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date prompt pic.PNG" style="width: 553px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20343iF9A73B3CB971DE7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="date prompt pic.PNG" alt="date prompt pic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459692#M29611</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459696#M29613</link>
      <description>&lt;P&gt;I figured it out with your advice. In the query window you go to Options &amp;gt;&amp;gt; Options for this Query &amp;gt;&amp;gt; Prompts. I added the prompts there and it resolved. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459696#M29613</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T14:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459706#M29614</link>
      <description>&lt;P&gt;Same solution. Save your query, even though it's displaying an error message, then right-click on it, Properties &amp;gt; Prompts, and pick your prompt. I just tried it, it worked fine.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459706#M29614</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-05-03T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid date/time/datetime constant using prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459712#M29616</link>
      <description>&lt;P&gt;Thanks it resolved following a similar solution from 'Options' in the query window&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Invalid-date-time-datetime-constant-using-prompt/m-p/459712#M29616</guid>
      <dc:creator>BNK720</dc:creator>
      <dc:date>2018-05-03T15:33:26Z</dc:date>
    </item>
  </channel>
</rss>

