<?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 Date prompt in a case statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424666#M27362</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS enterprise guide version 11 and I am trying to use a prompt within a case statement, and am getting a warning and an error:&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference CURR_PER_START not resolved.&lt;BR /&gt;ERROR: Invalid date/time/datetime constant "&amp;amp;Curr_Per_Start"d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my case statement:&lt;/P&gt;&lt;P&gt;case&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;when (t1.ASTHMA) = '1' and t1.ASTHMA_FIRST_RUN_DT &amp;lt; "&amp;amp;Curr_Per_Start"d&lt;BR /&gt;then 1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;else&lt;BR /&gt;0 end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Curr_Per_Start prompt type is set as date.&amp;nbsp; I had previously had a separate date prompt here which worked fine, but I am trying to use less prompts and am trying to point this case statement to a different prompt and now it won't work?&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 18:52:00 GMT</pubDate>
    <dc:creator>MandyV1217</dc:creator>
    <dc:date>2018-01-03T18:52:00Z</dc:date>
    <item>
      <title>Date prompt in a case statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424666#M27362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS enterprise guide version 11 and I am trying to use a prompt within a case statement, and am getting a warning and an error:&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference CURR_PER_START not resolved.&lt;BR /&gt;ERROR: Invalid date/time/datetime constant "&amp;amp;Curr_Per_Start"d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my case statement:&lt;/P&gt;&lt;P&gt;case&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;when (t1.ASTHMA) = '1' and t1.ASTHMA_FIRST_RUN_DT &amp;lt; "&amp;amp;Curr_Per_Start"d&lt;BR /&gt;then 1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;else&lt;BR /&gt;0 end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Curr_Per_Start prompt type is set as date.&amp;nbsp; I had previously had a separate date prompt here which worked fine, but I am trying to use less prompts and am trying to point this case statement to a different prompt and now it won't work?&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424666#M27362</guid>
      <dc:creator>MandyV1217</dc:creator>
      <dc:date>2018-01-03T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompt in a case statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424671#M27363</link>
      <description>&lt;P&gt;What does&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;CURR_PER_START look like when it's resolved?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424671#M27363</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompt in a case statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424678#M27364</link>
      <description>&lt;P&gt;I found my problem... I forgot to add the prompt to the properties of my query.&amp;nbsp; DUH!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424678#M27364</guid>
      <dc:creator>MandyV1217</dc:creator>
      <dc:date>2018-01-03T19:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompt in a case statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424679#M27365</link>
      <description>&lt;P&gt;Not sure what you mean by version 11, I'm fairly sure version 7 is the latest, but perhaps you mean 7.11.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This means that either you do not have the correct macro variable name for the prompt (did you misspell something), or that the prompt is not populated (did you check "required"), or most likely:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prompt is probably not associated with that specific program node, and you did not check "use this prompt throughout the project".&amp;nbsp; When you don't check that box, the prompt defines the macro variable inside the one node it is associated with, but then deletes that macro variable at the end of the program node.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-prompt-in-a-case-statement/m-p/424679#M27365</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-03T19:10:36Z</dc:date>
    </item>
  </channel>
</rss>

