title: F_checksal is not a procedure or is undefined when compiling plsql
body: <p>When I am trying to compile this plsql I keep getting this error message:</p>
  
  <pre><code>'F_checksal is not a procedure or is undefined'
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>declare
    e_high_increase EXCEPTION;
    old_sal NUMBER;
    function f_checkSal(i_sal number,i_old_sal IN OUT NUMBER) return VARCHAR2 is
    begin
    if((i_sal/old_sal)*100&gt;300) then
    raise e_high_increase;
    else  
    return 'yes';
    end if;
    exception when e_high_increase then
    insert into t_logerror(error_tx) values ('this is user exception');
    dbms_output.put_line('this is user exception');
    return 'No';
    end;
  begin
  select sal into old_sal FROM emp where empno=153;
  f_checksal(30000,old_sal);
  update emp set sal=30000 where empno=153;  
  end;
  </code></pre>