<?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 Can I call the EG where clause generator from a stored process? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-call-the-EG-where-clause-generator-from-a-stored-process/m-p/16673#M3082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, this request may be far fetched, but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to write a macro that is a "wrapper" macro for another macro (provided by Futrix).&amp;nbsp; This wrapper macro will provide additional error checking and, in summary, provide an easier user interface to the Futrix provided macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also want to create a stored process to provide a GUI to set the macro parameters.&amp;nbsp; So, a "programmer" will just call the macro in his/her code.&amp;nbsp; A "business user" will call the SP to display the prompts and set the parameters, and the SP will be a "one line" call to the macro.&amp;nbsp; The result is an output dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters go like:&amp;nbsp; select a source table, select columns from that table, create a where clause.&amp;nbsp; For the where clause, it would be cool if I could somehow call the EG where clause window, build a where clause, and have that where clause passed into a macro variable.&amp;nbsp; Or, has anyone ever written a where clause generator using the prompting capability of SAS stored processes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, has anyone created an EG custom task similar to the above?&amp;nbsp; It would be very much like the EG query builder, but instead of submitting code to SAS, it would set macro variables that I could pass to the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 11:26:44 GMT</pubDate>
    <dc:creator>ScottBass</dc:creator>
    <dc:date>2011-09-26T11:26:44Z</dc:date>
    <item>
      <title>Can I call the EG where clause generator from a stored process?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-call-the-EG-where-clause-generator-from-a-stored-process/m-p/16673#M3082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, this request may be far fetched, but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to write a macro that is a "wrapper" macro for another macro (provided by Futrix).&amp;nbsp; This wrapper macro will provide additional error checking and, in summary, provide an easier user interface to the Futrix provided macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also want to create a stored process to provide a GUI to set the macro parameters.&amp;nbsp; So, a "programmer" will just call the macro in his/her code.&amp;nbsp; A "business user" will call the SP to display the prompts and set the parameters, and the SP will be a "one line" call to the macro.&amp;nbsp; The result is an output dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters go like:&amp;nbsp; select a source table, select columns from that table, create a where clause.&amp;nbsp; For the where clause, it would be cool if I could somehow call the EG where clause window, build a where clause, and have that where clause passed into a macro variable.&amp;nbsp; Or, has anyone ever written a where clause generator using the prompting capability of SAS stored processes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, has anyone created an EG custom task similar to the above?&amp;nbsp; It would be very much like the EG query builder, but instead of submitting code to SAS, it would set macro variables that I could pass to the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-call-the-EG-where-clause-generator-from-a-stored-process/m-p/16673#M3082</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2011-09-26T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Can I call the EG where clause generator from a stored process?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-call-the-EG-where-clause-generator-from-a-stored-process/m-p/16674#M3083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I'm oversimplistic in my thinking&amp;nbsp; - but it seems like you could collect the prompt value and then just use a something like a CAT function to build the Where statement.&amp;nbsp; How you build the code to support the prompt may require some fancy footwork if it has a lot of options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Note this coding is not exact - just communicating the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_STMT=cats("Where ", " product=","&amp;amp;ProdPromptValue", " and ", "count &amp;gt;", "&amp;amp;CountPromptValue");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call symput ("where_stmt", temp_stmt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%your_macro(&amp;amp;where_stmt.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Curious to know if this will work and if not what you did figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tricia&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.bi-notes.com"&gt;Blog: Notes for SAS BI Users&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 12:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-I-call-the-EG-where-clause-generator-from-a-stored-process/m-p/16674#M3083</guid>
      <dc:creator>TriciaA</dc:creator>
      <dc:date>2011-11-17T12:02:07Z</dc:date>
    </item>
  </channel>
</rss>

