title: dbms_output.put_line not printing inside procedure even after 'set serveroutput on'
body: <p>The below procedure executes fine but the 'dbms' inside it does not print any output.( procedure meant to jot out the names of the emps whose salaries are yet to be entered in the table)
  The table has two columns i.e 1)name_of_emp 2)salary (default 0)</p>
  
  <pre><code>create or replace procedure add_sal_info
  as
      cursor c is select * from emp_earnings;
      cname varchar2(30);
      csal number(5);
  
  begin
      open c;
  
      while(c%found) loop
          fetch c into cname, csal;
          if (csal = 0) then
              dbms_output.put_line('enter salary for : ' ||' '|| cname);
          end if;
      end loop;
  
      close c;
  end;
  /
  </code></pre>
  
  <p>The serveroutput is set to 'on' and i get the message "procedure completed successfully" on execute but it does not print the names of emps whose salaries are not entered (there are a few of them in the table).
  any crux here?</p>