<?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 strange error message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/strange-error-message/m-p/880976#M348118</link>
    <description>&lt;P&gt;I've run this data step before without incident, but now I'm getting an error I don't understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;28 DATA SASTEMP.ICD10_AMPUTATION;&lt;BR /&gt;29 SET A3X5_LIB.ICD10_AMPUTATION;&lt;BR /&gt;30 RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SNOWFLAKE_17: Prepared: on connection 4&lt;BR /&gt;SELECT * FROM CMS_SASTEMP_COMM_PRD.ICD10_AMPUTATION WHERE 0=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Summary Statistics for SNOWFLAKE are:&lt;BR /&gt;Total SQL prepare seconds were: 0.165240&lt;BR /&gt;Total seconds used by the SNOWFLAKE ACCESS engine were 0.167861&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_18: Executed: on connection 5&lt;BR /&gt;CREATE TABLE CMS_SASTEMP_COMM_PRD.ICD10_AMPUTATION (Order number double,ICD10 VARCHAR(7),Long description VARCHAR(58))&lt;BR /&gt;&lt;BR /&gt;ERROR: Error attempting to CREATE a DBMS table. ERROR: CLI execute error: SQL compilation error: syntax error line 1 at position 52&lt;BR /&gt;unexpected 'Order'. syntax error line 1 at position 106 unexpected 'VARCHAR'. syntax error line 1 at position 113 unexpected&lt;BR /&gt;'('. syntax error line 1 at position 117 unexpected ')'..&lt;BR /&gt;NOTE: The DATA step has been abnormally terminated.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set SASTEMP.ICD10_AMPUTATION may be incomplete. When this step was stopped there were 0 observations and 3&lt;BR /&gt;variables.&lt;BR /&gt;&lt;BR /&gt;Summary Statistics for SNOWFLAKE are:&lt;BR /&gt;Total SQL execution seconds were: 0.069006&lt;BR /&gt;Total SQL prepare seconds were: 0.165240&lt;BR /&gt;2 The SAS System 12:18 Thursday, June 15, 2023&lt;/P&gt;&lt;P&gt;Total seconds used by the SNOWFLAKE ACCESS engine were 0.239782&lt;BR /&gt;&lt;BR /&gt;ERROR: ROLLBACK issued due to errors for data set SASTEMP.ICD10_AMPUTATION.DATA.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 2.46 seconds&lt;BR /&gt;cpu time 0.09 seconds&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 17:00:33 GMT</pubDate>
    <dc:creator>Batman</dc:creator>
    <dc:date>2023-06-15T17:00:33Z</dc:date>
    <item>
      <title>strange error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-error-message/m-p/880976#M348118</link>
      <description>&lt;P&gt;I've run this data step before without incident, but now I'm getting an error I don't understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;28 DATA SASTEMP.ICD10_AMPUTATION;&lt;BR /&gt;29 SET A3X5_LIB.ICD10_AMPUTATION;&lt;BR /&gt;30 RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SNOWFLAKE_17: Prepared: on connection 4&lt;BR /&gt;SELECT * FROM CMS_SASTEMP_COMM_PRD.ICD10_AMPUTATION WHERE 0=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Summary Statistics for SNOWFLAKE are:&lt;BR /&gt;Total SQL prepare seconds were: 0.165240&lt;BR /&gt;Total seconds used by the SNOWFLAKE ACCESS engine were 0.167861&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_18: Executed: on connection 5&lt;BR /&gt;CREATE TABLE CMS_SASTEMP_COMM_PRD.ICD10_AMPUTATION (Order number double,ICD10 VARCHAR(7),Long description VARCHAR(58))&lt;BR /&gt;&lt;BR /&gt;ERROR: Error attempting to CREATE a DBMS table. ERROR: CLI execute error: SQL compilation error: syntax error line 1 at position 52&lt;BR /&gt;unexpected 'Order'. syntax error line 1 at position 106 unexpected 'VARCHAR'. syntax error line 1 at position 113 unexpected&lt;BR /&gt;'('. syntax error line 1 at position 117 unexpected ')'..&lt;BR /&gt;NOTE: The DATA step has been abnormally terminated.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set SASTEMP.ICD10_AMPUTATION may be incomplete. When this step was stopped there were 0 observations and 3&lt;BR /&gt;variables.&lt;BR /&gt;&lt;BR /&gt;Summary Statistics for SNOWFLAKE are:&lt;BR /&gt;Total SQL execution seconds were: 0.069006&lt;BR /&gt;Total SQL prepare seconds were: 0.165240&lt;BR /&gt;2 The SAS System 12:18 Thursday, June 15, 2023&lt;/P&gt;&lt;P&gt;Total seconds used by the SNOWFLAKE ACCESS engine were 0.239782&lt;BR /&gt;&lt;BR /&gt;ERROR: ROLLBACK issued due to errors for data set SASTEMP.ICD10_AMPUTATION.DATA.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 2.46 seconds&lt;BR /&gt;cpu time 0.09 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-error-message/m-p/880976#M348118</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-06-15T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: strange error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-error-message/m-p/880982#M348119</link>
      <description>&lt;P&gt;I don't use snowflake, so this is just a guess. But from the logs, it looks like there might be a column named&amp;nbsp;&lt;SPAN&gt;Order number in your source snowflake table, and that is tripping up the generated SQL which thinks ORDER is a keyword instead of part of a variable name.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could try stuff like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA SASTEMP.ICD10_AMPUTATION;
  SET A3X5_LIB.ICD10_AMPUTATION (rename=("Order Number"N = OrderNumber)) ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-error-message/m-p/880982#M348119</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-06-15T17:13:09Z</dc:date>
    </item>
  </channel>
</rss>

