<?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: In-database processsing Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615882#M180203</link>
    <description>&lt;P&gt;Code is here &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table work.OUTPUT as
      select distinct
         ID,
         CAUSE,
         (put(REPORTING_DATE ,yymmd8.)) as REPORTING_DATE length = 8
            format = $8.
            label = 'REPORTING_DATE'
from sqllbry.customer;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Jan 2020 10:43:18 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2020-01-08T10:43:18Z</dc:date>
    <item>
      <title>In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615859#M180185</link>
      <description>&lt;P&gt;I'm getting the following error while I run the SAS code which query SQL table. It is worth to inform that the code which I ran contains put function to convert data field to character with yymmd8. Format. Is it OK to apply only the Options&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SQLMAPPUTTO=NONE to get rid of this error?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be informed that my SAS code contains multiple Proc SQL's in which few, query the SQL table and it contains PUT function. So I've to put only &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SQLMAPPUTTO=NONE &lt;/FONT&gt;when it contains PUT function for SQL tables and for other query can I mention &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SQLMAPPUTTO=SAS_PUT?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Error during in-database processing.
ERROR: Error during in-database processing.
ERROR: ERROR: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'dbo'.
ERROR: ERROR: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The batch could not be analyzed because of compile 
       errors.
ERROR: ERROR: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'dbo'.
ERROR: ERROR: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The batch could not be analyzed because of compile 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 07:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615859#M180185</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T07:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615862#M180187</link>
      <description>&lt;P&gt;Can you please provide the full code?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 07:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615862#M180187</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-01-08T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615864#M180189</link>
      <description>I can summarize the code for you as I left from office.&lt;BR /&gt;&lt;BR /&gt;I'm querying the SQL server table via proc sql and that query has put&lt;BR /&gt;function (e.g. put(joining_date,yymmd8.) as joining_date for one variable.&lt;BR /&gt;&lt;BR /&gt;Same code works fine if the contributing table is SAS dataset.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 08:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615864#M180189</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615868#M180191</link>
      <description>&lt;P&gt;If you use explicit pass-through, the code sent to the DB must use the DMBS's syntax.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 08:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615868#M180191</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-08T08:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615873#M180195</link>
      <description>&lt;P&gt;It's a implicit passthrough.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 09:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615873#M180195</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615879#M180200</link>
      <description>&lt;P&gt;Then I think we really need to see the code here.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 10:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615879#M180200</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-08T10:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615882#M180203</link>
      <description>&lt;P&gt;Code is here &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table work.OUTPUT as
      select distinct
         ID,
         CAUSE,
         (put(REPORTING_DATE ,yymmd8.)) as REPORTING_DATE length = 8
            format = $8.
            label = 'REPORTING_DATE'
from sqllbry.customer;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 10:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615882#M180203</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615883#M180204</link>
      <description>&lt;P&gt;There's a "d" missing in your format name, and you should use yymmddn8. to avoid getting a 2-digit year.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 10:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615883#M180204</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-08T10:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615890#M180206</link>
      <description>&lt;P&gt;still I'm getting the error after changing the Format to yymmddn8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Numeric format YYMMDDN in PUT function requires a numeric argument.
NOTE: A CASE expression has no ELSE clause. Cases not accounted for by the WHEN clauses will result in a missing value for the CASE 
      expression.
ERROR: Numeric format YYMMN in PUT function requires a numeric argument.
ERROR: Numeric format YYMMN in PUT function requires a numeric argument.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 11:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615890#M180206</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615894#M180208</link>
      <description>&lt;P&gt;Which means that reporting_date is character, and not a date, at least as SAS sees it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also see no CASE clause in the code you posted, so we seem to be talking about different things here. For clear diagnosis, we need the code, the whole code, and nothing but the code. Please run your code with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and post the whole log of the step.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 11:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615894#M180208</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-08T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615946#M180236</link>
      <description>&lt;P&gt;Yes, what is the format of your reporting_date column?&lt;/P&gt;
&lt;P&gt;You probably need to first do an input(reporting_date, &lt;EM&gt;whatever format your date column is in&lt;/EM&gt;.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615946#M180236</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-01-08T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615951#M180241</link>
      <description>Reporting_date field is numeric&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/615951#M180241</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-01-08T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: In-database processsing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/951609#M371977</link>
      <description>thx david for providing the solution with&lt;BR /&gt;SQLMAPPUTTO=NONE&lt;BR /&gt;it saved my day and solved the above error.</description>
      <pubDate>Fri, 22 Nov 2024 10:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-database-processsing-Error/m-p/951609#M371977</guid>
      <dc:creator>_alex</dc:creator>
      <dc:date>2024-11-22T10:19:14Z</dc:date>
    </item>
  </channel>
</rss>

