<?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 How to make EG generate a &amp;quot;calculated&amp;quot; keyword in Query Builder in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-EG-generate-a-quot-calculated-quot-keyword-in-Query/m-p/111135#M9498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taking Art's example from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.sas.com/message/118406#118406"&gt;http://communities.sas.com/message/118406#118406&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a starting point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc sql;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select sum(sex='M') as a,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(*) as b,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calculated a/calculated b as c&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.class&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but trying to replicate it using the EG query builder, I can get the query builder to create &lt;EM&gt;a&lt;/EM&gt; and &lt;EM&gt;b&lt;/EM&gt; as advanced expressions, but when I try to create &lt;EM&gt;c&lt;/EM&gt; as an advanced expression of dividing &lt;EM&gt;b&lt;/EM&gt; into &lt;EM&gt;a&lt;/EM&gt; by clicking on them, it reuses the formulas. If I manually type in calculated a / calculated b, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how I can get EG to use "calculated a" instead of the formula for &lt;EM&gt;a&lt;/EM&gt; when I use it in the Query Builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I'm doubting my sanity. I'm SURE this used to happen in an earlier version of EG!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Oct 2013 16:59:13 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2013-10-12T16:59:13Z</dc:date>
    <item>
      <title>How to make EG generate a "calculated" keyword in Query Builder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-EG-generate-a-quot-calculated-quot-keyword-in-Query/m-p/111135#M9498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taking Art's example from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.sas.com/message/118406#118406"&gt;http://communities.sas.com/message/118406#118406&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a starting point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc sql;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select sum(sex='M') as a,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(*) as b,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calculated a/calculated b as c&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.class&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but trying to replicate it using the EG query builder, I can get the query builder to create &lt;EM&gt;a&lt;/EM&gt; and &lt;EM&gt;b&lt;/EM&gt; as advanced expressions, but when I try to create &lt;EM&gt;c&lt;/EM&gt; as an advanced expression of dividing &lt;EM&gt;b&lt;/EM&gt; into &lt;EM&gt;a&lt;/EM&gt; by clicking on them, it reuses the formulas. If I manually type in calculated a / calculated b, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how I can get EG to use "calculated a" instead of the formula for &lt;EM&gt;a&lt;/EM&gt; when I use it in the Query Builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I'm doubting my sanity. I'm SURE this used to happen in an earlier version of EG!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 16:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-EG-generate-a-quot-calculated-quot-keyword-in-Query/m-p/111135#M9498</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-10-12T16:59:13Z</dc:date>
    </item>
  </channel>
</rss>

