<?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: Transferring syntax to SAS EG and integrating prompts in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135589#M10982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our SAS Enterprise Guide classes we teach you how to integrate prompts into queries, tasks, and code.&amp;nbsp; If you don't get a chance to take our classes, one of our previous instructors Kenny Sucher wrote a great paper that I think will show you exactly what you want to do.&amp;nbsp; Check out &lt;A href="http://support.sas.com/resources/papers/proceedings10/036-2010.pdf"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Interactive and Efficient Macro Programming with Prompts in &lt;/SPAN&gt;SAS® Enterprise Guide® 4.2&lt;/A&gt;.&amp;nbsp; The section that you will interest you most is on &lt;EM&gt;ADDING RUN-TIME PROMPTS TO CODE&lt;/EM&gt;.&amp;nbsp; You will discover that the reason your prompts are not resolving is because they need to be added to the properties of the program.&amp;nbsp; Hopefully between this paper or one of Chris' suggestions, you can get your prompts working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 02:56:48 GMT</pubDate>
    <dc:creator>AndyRav</dc:creator>
    <dc:date>2014-01-13T02:56:48Z</dc:date>
    <item>
      <title>Transferring syntax to SAS EG and integrating prompts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135587#M10980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I know now how to create prompts and use those prompts (which create macro variables) when using standard SAS EG tasks (except filtering - can't seem to use them then?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm looking for some guidance on whether there is a way to write my own program in SAS EG and then put the prompts in there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My macros were written in Base SAS and it would take me forever to re-do them from scratch in SAS EG. Can I simply cut and paste from Base SAS into a new SAS EG project and somehow integrate the prompts with my macro variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've created a new program in SAS and written some basic syntax to create a data set in the work library, then then created some prompts in the prompt manager using the new data set. After that I then tried adding some code to the program to create a new table using only the gender variable. I referenced the macro variable (prompt) i created earlier, however, I get an error message saying it cannot resolve the reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have access to stored processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 03:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135587#M10980</guid>
      <dc:creator>awmk</dc:creator>
      <dc:date>2014-01-09T03:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring syntax to SAS EG and integrating prompts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135588#M10981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a couple of options.&amp;nbsp; For the ultimate control over the user interface, you can create a custom task.&amp;nbsp; This process involves programming in Microsoft .NET, but the mechanism might be easier than you think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custom task reference (with links to information about my book on the topic):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://go.sas.com/customtasksapi"&gt;http://go.sas.com/customtasksapi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example task that is a front-end for a simple macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://blogs.sas.com/content/sasdummy/2011/02/17/putting-the-squeeze-on-your-sas-data-sets/" title="http://blogs.sas.com/content/sasdummy/2011/02/17/putting-the-squeeze-on-your-sas-data-sets/"&gt;Putting the squeeze on your SAS data sets - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking to create a standalone-application (where the user doesn't even see the SAS EG interface), you can use SAS Enterprise Guide automation.&amp;nbsp; That API and examples are linked from here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/04/17/doing-more-with-sas-enterprise-guide-automation/" title="http://blogs.sas.com/content/sasdummy/2012/04/17/doing-more-with-sas-enterprise-guide-automation/"&gt; Doing more with SAS Enterprise Guide automation - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you're looking to use prompts within filters, check out the %_eg_where_param macro.&amp;nbsp; That's the construct that you need to create effective filters that use SAS Enterprise Guide prompts.&amp;nbsp; See Angela's guidance on this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/bi/2012/03/14/three_examples_of_egwherepara/" title="http://blogs.sas.com/content/bi/2012/03/14/three_examples_of_egwherepara/"&gt;SAS Enterprise Guide Prompting Examples using %_eg_WhereParam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135588#M10981</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-01-09T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring syntax to SAS EG and integrating prompts</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135589#M10982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our SAS Enterprise Guide classes we teach you how to integrate prompts into queries, tasks, and code.&amp;nbsp; If you don't get a chance to take our classes, one of our previous instructors Kenny Sucher wrote a great paper that I think will show you exactly what you want to do.&amp;nbsp; Check out &lt;A href="http://support.sas.com/resources/papers/proceedings10/036-2010.pdf"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Interactive and Efficient Macro Programming with Prompts in &lt;/SPAN&gt;SAS® Enterprise Guide® 4.2&lt;/A&gt;.&amp;nbsp; The section that you will interest you most is on &lt;EM&gt;ADDING RUN-TIME PROMPTS TO CODE&lt;/EM&gt;.&amp;nbsp; You will discover that the reason your prompts are not resolving is because they need to be added to the properties of the program.&amp;nbsp; Hopefully between this paper or one of Chris' suggestions, you can get your prompts working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 02:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transferring-syntax-to-SAS-EG-and-integrating-prompts/m-p/135589#M10982</guid>
      <dc:creator>AndyRav</dc:creator>
      <dc:date>2014-01-13T02:56:48Z</dc:date>
    </item>
  </channel>
</rss>

