<?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: Change in SQL from 9.1 to 9.3 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96412#M27231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as deal_option_id is numeric, your code appears to work on 9.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 20:41:21 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-04-03T20:41:21Z</dc:date>
    <item>
      <title>Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96406#M27225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I there. This is part of an auto process program I created. I recently upgraded from 9.1 to 9.3 and I'm having trouble with some queries that used to work just fine. See below for the query and then below the query I have the Error that now occurs in 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table get_load as&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.DEAL_OPTION_ID as VHET_SUBDEAL_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.CUSTOMER,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.CLOSEDDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.PRODUCT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.PRODUCT_ATTRIBUTE as COMPONENT_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.NUM_VALUE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.BUNDLE_OPTION as BUNDLE_OPTION_FLAG&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vhet.dh_subdeal_product_structure t&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.TYPE in ('Pricing Component' 'Value Component') and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.PRODUCT_ATTRIBUTE in ('ANNUAL_USAGE' 'TERM_LOAD' 'MARGIN' 'TOTAL_COGS' 'BROKER_FEE' 'CONTRACT_PRICE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ANNUAL_PEAK' 'REVENUE' 'PORTAL_FEE') and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.DEAL_OPTION_ID in (&amp;amp;deal_option.) and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.VERSION_CURRENT_YN = 'Y'&lt;/P&gt;&lt;P&gt;ORDER BY &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t.DEAL_OPTION_ID;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Error:&lt;/P&gt;&lt;P&gt;ERROR: PROC SQL requires any created table to have at least 1 column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro variable &amp;amp;deal_option. doesn't seem to be the problem as that was my first guess. I'm not sure why the columns are now the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for kicks, this is the macro variable code:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select vhet_subdeal &lt;/P&gt;&lt;P&gt;into: deal_option separated by " "&lt;/P&gt;&lt;P&gt;from keep_subdeal_id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas guys/gals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96406#M27225</guid>
      <dc:creator>DHeady</dc:creator>
      <dc:date>2013-04-03T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96407#M27226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try separating the literals in your IN conditions with commas, including the &amp;amp;deal_option list. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96407#M27226</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-03T15:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96408#M27227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it to no avail. I replaced the macro variable with just one of the numeric values it stores and the error is the same. If I take out the Where statement, the query runs, but the table is gigantic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, thank you for your time. It is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96408#M27227</guid>
      <dc:creator>DHeady</dc:creator>
      <dc:date>2013-04-03T18:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96409#M27228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try puting the WHERE statement back line by line until it fails. You should then be able to isolate where the problem lies. To speed up the testing add the INOBS = option to your PROC SQL statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96409#M27228</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-04-03T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96410#M27229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate that. The problem doesn't look to be the code. I already attempted the inobs and it's getting hung on the table. I can't read from the table in 9.3.. Sounds like it could be a settings issue between my versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96410#M27229</guid>
      <dc:creator>DHeady</dc:creator>
      <dc:date>2013-04-03T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96411#M27230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm baffled. Try removing the WHERE conditions one by one... - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96411#M27230</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-03T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96412#M27231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as deal_option_id is numeric, your code appears to work on 9.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96412#M27231</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-04-03T20:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96413#M27232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arthur. I think it must be an internal systems issue. No idea what it would be, but it has to be something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for there time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96413#M27232</guid>
      <dc:creator>DHeady</dc:creator>
      <dc:date>2013-04-03T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change in SQL from 9.1 to 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96414#M27233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that if the orginal table vhet.dh_subdeal_product_structure was created by SAS 9.1there could be some problems in reading it by SAS 9.3. If it is possible try creating a copy for example in work library by datastep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dh_subdeal_product_structure_copy;&lt;/P&gt;&lt;P&gt;set vhet.dh_subdeal_product_structureů&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try to run the query reading from this copy of your original dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 10:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-in-SQL-from-9-1-to-9-3/m-p/96414#M27233</guid>
      <dc:creator>chrej5am</dc:creator>
      <dc:date>2013-04-04T10:46:38Z</dc:date>
    </item>
  </channel>
</rss>

