<?xml version='1.0' encoding='UTF-8'?>
<!--
  ~ Copyright (c) DbVis Software AB. All Rights Reserved.
  -->
<sql:Dialect tag="db2" xmlns:sql="http://dbvis.com/sql-dialect.xsd" comment="DB/2 LUW" references="
   Overview: https://www.ibm.com/support/knowledgecenter/SSEPGG
   Create Procedure: https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0008329.html
   Create Procedure (external): https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0008328.html
   Create Function: https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0003493.html?pos=2
   Create Trigger: https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0000931.html
   Control Statements: https://www.ibm.com/support/knowledgecenter/SSEPGG_11.5.0/com.ibm.db2.luw.apdv.plsql.doc/doc/c0053870.html
   ">
   
   <sql:ComplexStatement begin="CREATE [OR REPLACE] {FUNCTION|PROCEDURE|TRIGGER}" end="/" end.anchor="only" end.include="false"/>

   <!-- NOT REQUIRED: we scan for the single "/" to terminate complex statements --> 
   <!--   <sql:InnerStatement begin="BEGIN" end="END"/>-->
   <!--   <sql:InnerStatement begin="IF" end="END IF"/>-->
   <!--   <sql:InnerStatement begin="WHILE" end="END WHILE"/>-->
   <!--   <sql:InnerStatement begin="CASE" end="END CASE"/>-->
   <!--   <sql:InnerStatement begin="{FOR|WHILE|LOOP}" end="END LOOP"/>-->

   <!--   <sql:ComplexStatement begin="DECLARE" end="END" end.override="true" end.include="true"/>-->
   <!--   <sql:ComplexStatement begin="CREATE [OR REPLACE] {PROCEDURE|FUNCTION}" end="END [*]" end.include="false"/>-->
   <!--   <sql:ComplexStatement begin="CREATE [OR REPLACE] TRIGGER" end="END" end.include="false"/>-->

</sql:Dialect>