<?xml version="1.0" encoding="windows-1252"?>
<node id="813831" title="Re^2: Execute Oracle Stored procedure using DBIx::ProcedureCall" created="2009-12-22 03:35:35" updated="2009-12-22 03:35:35">
<type id="11">
note</type>
<author id="627193">
kalyanrajsista</author>
<data>
<field name="doctext">
&lt;P&gt;Here is the Oracle procedure I'm trying to execute...This procedure is printing the output onto the screen. Is there anyway that i can get the output inform of rows from any CPAN Module&lt;/P&gt;

&lt;code&gt;
create or replace PROCEDURE abc AS
BEGIN
  DECLARE Tname user_tables.table_name%TYPE;
  Tstatus user_tables.status%TYPE;
  CURSOR data_groups IS
  SELECT table_name, status
  FROM user_tables;
BEGIN
  OPEN data_groups;
  FETCH data_groups
  INTO Tname, Tstatus;
  WHILE data_groups % FOUND
  LOOP
    DBMS_OUTPUT.PUT_LINE(Tname || ' ==&gt; ' || Tstatus);
    FETCH data_groups
    INTO Tname, Tstatus;
  END LOOP;
END;
END abc; 
&lt;/code&gt;
</field>
<field name="root_node">
813695</field>
<field name="parent_node">
813761</field>
</data>
</node>
