<?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>Question Re: SQLErrText in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaa-p/11733309#M4390942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the ErrMsg() function. Here in &lt;A href="http://dcx.sap.com/index.html#sa160/en/dbreference/errormsg-function.html*d5e17518" title="http://dcx.sap.com/index.html#sa160/en/dbreference/errormsg-function.html*d5e17518"&gt;DocCommentXchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark number 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jun 2016 00:32:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-06-11T00:32:57Z</dc:date>
    <item>
      <title>SQLErrText</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaq-p/11733308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one go about getting the Sql Error Text associated with the SQLCODE in a SQLAnywhere 16 stored procedure. I can't seem to find a variable like the PowerBuilder SQLErrText that would hold this text. For example, for SQLCODE = -195, the message text is "&lt;A class="olink" href="http://infocenter.sybase.com/help/topic/com.sybase.help.sqlanywhere.12.0.1/saerrors/errm195.html" style="color: blue; font-family: sans-serif; font-size: 13px;"&gt;Column '%1' in table '%2' cannot be NULL&lt;/A&gt;" How do I get the full message with the parameters filled in in a stored procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN OTHERS THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET ls_sqlcode = String(SQLCODE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLLBACK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL notfy_notification('H', 'I', 'ERROR','Error in Procedure SQLCODE: ' || ls_sqlcode, null);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raiserror 18002 '18002 Error SQLCODE: ' || ls_sqlcode;&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaq-p/11733308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-10T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQLErrText</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaa-p/11733309#M4390942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the ErrMsg() function. Here in &lt;A href="http://dcx.sap.com/index.html#sa160/en/dbreference/errormsg-function.html*d5e17518" title="http://dcx.sap.com/index.html#sa160/en/dbreference/errormsg-function.html*d5e17518"&gt;DocCommentXchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark number 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaa-p/11733309#M4390942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-11T00:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQLErrText</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaa-p/11733310#M4390943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That's what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlerrtext/qaa-p/11733310#M4390943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-11T01:22:41Z</dc:date>
    </item>
  </channel>
</rss>

