set serveroutput on
declare
empname varchar2(10);
cursor info is select empno from empinout;
begin
for emp_rec in info
loop
   empproc1(emp_rec.empno, empname);
   dbms_output.put_line(empname);
end loop;
end;
/
set serveroutput off