title: Use bind variables inside pl/sql stored procedure
body: <p>Is it possible to use bind variables,(declared and initialized outside pl/sql block) inside pl/sql stored procedure</p>
  
  <p>I am just trying to print bind variable defined as shown below :</p>
  
  <p><strong>Bind variable declaration and initialization</strong></p>
  
  <pre><code>var jdata varchar2(4000);
  exec :jdata := ''{"PONumber":12,"Reference":"StackOver"}'';
  </code></pre>
  
  <p><strong>pl/sql procedure</strong></p>
  
  <pre><code>create or replace PROCEDURE generic_procedure( v_typename IN VARCHAR2,v_path IN VARCHAR2 DEFAULT '$') IS
  BEGIN
      dbms_output.put_line(:jdata);
  END generic_procedure;
  /
  </code></pre>
  
  <p><strong>Error</strong> </p>
  
  <blockquote>
    <p>fails at compilation:
        SQL> show errors
        Errors for PROCEDURE GENERIC_PROCEDURE:</p>
    
    <p>ERROR: bad bind variable 'JDATA'</p>
  </blockquote>
  
  <p>Here, I'm trying to call jdata inside generic_procedure(stored pl/sql procedure) . but it says JDATA as </p>
  
  <blockquote>
    <p>bad bind variable</p>
  </blockquote>