<?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: Define prompt default value using Macro Variabe in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428799#M27668</link>
    <description>&lt;P&gt;I don't think that's correct. The value in the prompt is what was most recently set in the prompt, it does not get the value from a global macro variable.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2018 14:30:29 GMT</pubDate>
    <dc:creator>lethcons</dc:creator>
    <dc:date>2018-01-18T14:30:29Z</dc:date>
    <item>
      <title>Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/426884#M27487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;using prompts to define some variables to use in a SAS EG project. I managed to configure them to show on every program I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of those prompts ('camp') is a text where I list a number of IDs separated by spaces that will then be used as input for a macro function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sometimes change the values of the macro variable 'camp' using code on a program&amp;nbsp;but when&amp;nbsp;I run other program&amp;nbsp;that uses the same prompt, the default value it shows is the value I entered and not the value&amp;nbsp;stored in the macro variable. Is there a way&amp;nbsp;to change the default value of the prompt when I change the macro variable value using code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RN&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 14:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/426884#M27487</guid>
      <dc:creator>Ricardo_Neves</dc:creator>
      <dc:date>2018-01-11T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/427741#M27546</link>
      <description>&lt;P&gt;I don't think so. The prompt sets the initial value of the macro variable, but the macro variable does not set the initial value of the prompt. If there is a way I've never seen it.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/427741#M27546</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2018-01-15T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428394#M27601</link>
      <description>&lt;P&gt;sure.&amp;nbsp; set it as a %global variable and, after you change the value, the next time you run a program that prompts for it you'll see the new value.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428394#M27601</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-01-17T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428799#M27668</link>
      <description>&lt;P&gt;I don't think that's correct. The value in the prompt is what was most recently set in the prompt, it does not get the value from a global macro variable.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428799#M27668</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2018-01-18T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428815#M27670</link>
      <description>The prompt shows the default value we define. I'm guessing that when I run a program and set a different value it change the definitions of the prompt for that session so every time I run a program that calls the same prompt it shows the last inserted value. I read somewhere that it is possible to right a program that changes the definitions of the prompt but I couldn't find anything on how to do it.&lt;BR /&gt;I even tried looking at the log to see if I could find how the system is doing it, but I don't think it is there.</description>
      <pubDate>Thu, 18 Jan 2018 15:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/428815#M27670</guid>
      <dc:creator>Ricardo_Neves</dc:creator>
      <dc:date>2018-01-18T15:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Define prompt default value using Macro Variabe</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/434588#M28075</link>
      <description>&lt;P&gt;I do it regularly...it works just fine.&amp;nbsp; You just can't set the value before the prompt screen comes up the first time.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 16:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Define-prompt-default-value-using-Macro-Variabe/m-p/434588#M28075</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-02-06T16:36:06Z</dc:date>
    </item>
  </channel>
</rss>

