title: How to handle Oracle SQLcl syntax errors?
body: <p>I'm using Jenkins for CI/CD Oracle PL/SQL scripts using Oracle SQLcl, so i want to catch syntax errors for Jenkins Pipeline, for example:</p>
  <pre><code>SQL&gt; seelect * from emp;
  
  Error que empieza en la línea: 1 del comando :
  seelect * from emp
  Informe de error -
  Comando desconocido
  </code></pre>
  <p>How can I end connection to database with a sh/bash error code when a syntax error is detected?</p>
  <p>NOTE: I use WHENEVER SQLERROR EXIT FAILURE to ORA-XXX errors, but i can't catch syntax errors.</p>
  <p>Thank You</p>