Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored procedure Question

RE: Stored procedure Question

From: Mercadante, Thomas F <Thomas.Mercadante_at_Labor.State.Ny.Us>
Date: Fri, 01 Feb 2002 10:25:42 -0800
Message-ID: <F001.0040385A.20020201095536@fatcity.com>

Lance,

As far as Excel workbooks are concerned, you can create any kind of tab-delimited file, name the file something.xls, and you can directly open it via excel.

So, in your case, you could do something like:

set head off
set serveroutput on
set out.xls

declare

in_param number; out_param1 number; out_param2 number;

begin

   call_your_procedure(in_param,out_param1,out_param2);    dbms_output.put_Line(out_param1||chr(9)||out_param2); end;
/

spool off

The above would create a file named out.xls with two columns populated. You could easily extend this for more output/records.

Hope this helps

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Friday, February 01, 2002 11:35 AM To: Multiple recipients of list ORACLE-L

All,

   Currently I run a stored procedure and manually take the results and save them to a xls file. I have few questions:

  1. Is it possible to automatic this?
  2. Is it possible to save is as an access file?
  3. If it possible to do either of the above. Does anyone have examples that I could use?

Thank you in advance
Lance

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Lance Prais
  INET: lprais_at_ts.checkpoint.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: Thomas.Mercadante_at_Labor.State.Ny.Us
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Feb 01 2002 - 12:25:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US