<?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: Query with pure EG 4.3 Query Builder in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-with-pure-EG-4-3-Query-Builder/m-p/37599#M4614</link>
    <description>Maybe your case construct will work with a small adaptation. Use quotes like:&lt;BR /&gt;
&lt;BR /&gt;
case when "&amp;amp;cond" ='' then 1=1 else &amp;amp;cond&lt;BR /&gt;
&lt;BR /&gt;
Good luck. &lt;BR /&gt;
- Jan.</description>
    <pubDate>Fri, 25 Mar 2011 00:57:27 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2011-03-25T00:57:27Z</dc:date>
    <item>
      <title>Query with pure EG 4.3 Query Builder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-with-pure-EG-4-3-Query-Builder/m-p/37598#M4613</link>
      <description>I am using the EG 4.3 query builder to select and filter data from dataset for generating report with parameter prompt.&lt;BR /&gt;
&lt;BR /&gt;
The parameter required will be ad-hoc SQL command e.g. year = 2009 and month = 1&lt;BR /&gt;
&lt;BR /&gt;
i able to perform such ad-hoc SQL when the parameter is entered, but get error when the parameter is left empty. I know there is an option for "Required non-blank variable" in the parameter prompt, by checking this the parameter cannot be left blank before submitting. But if i want to allow it to be blank, is there any workaround or trick for doing such magical query?&lt;BR /&gt;
&lt;BR /&gt;
I now assigned a "cond" variable for the ad-hoc condition and setting the filter = &amp;amp;cond for performing such ad-hoc query. i have tried using case when &amp;amp;cond ='' then 1=1 else &amp;amp;cond end but fail with error.&lt;BR /&gt;
&lt;BR /&gt;
Any one has idea to this problem? Thanks in advance!</description>
      <pubDate>Thu, 24 Mar 2011 10:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-with-pure-EG-4-3-Query-Builder/m-p/37598#M4613</guid>
      <dc:creator>SASDump</dc:creator>
      <dc:date>2011-03-24T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query with pure EG 4.3 Query Builder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-with-pure-EG-4-3-Query-Builder/m-p/37599#M4614</link>
      <description>Maybe your case construct will work with a small adaptation. Use quotes like:&lt;BR /&gt;
&lt;BR /&gt;
case when "&amp;amp;cond" ='' then 1=1 else &amp;amp;cond&lt;BR /&gt;
&lt;BR /&gt;
Good luck. &lt;BR /&gt;
- Jan.</description>
      <pubDate>Fri, 25 Mar 2011 00:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Query-with-pure-EG-4-3-Query-Builder/m-p/37599#M4614</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2011-03-25T00:57:27Z</dc:date>
    </item>
  </channel>
</rss>

