<br><font size=2 face="sans-serif">Hi All,,</font>
<br>
<br><font size=2 face="sans-serif">Just for the record, I did not manage
to get this working.</font>
<br>
<br><font size=2 face="sans-serif">I tried both Bob't example and Doug's
suggestion about the environment variable and still got the same error
message.</font>
<br>
<br><font size=2 face="sans-serif">Happy New Year to All,</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Adrian</font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Moffatt, Doug&quot;
&lt;Doug.Moffatt@cognos.com&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: powerh-l-bounces+adrian.hudson=eu.averydennison.com@lists.sowder.com</font>
<p><font size=1 face="sans-serif">19/12/2007 23:05</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&lt;powerh-l@lists.sowder.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: Powerhouse and Result Sets/Cursors</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi Adrian,<br>
<br>
The Powerhouse source is correct. &nbsp;On your server machine, try setting<br>
the environment variable, &nbsp;STRICT_SQL92=yes.<br>
<br>
Regards...Doug<br>
<br>
-----Original Message-----<br>
From: powerh-l-bounces+doug.moffatt=cognos.com@lists.sowder.com<br>
[mailto:powerh-l-bounces+doug.moffatt=cognos.com@lists.sowder.com] On<br>
Behalf Of powerh-l-request@lists.sowder.com<br>
Sent: Tuesday, December 18, 2007 1:06 PM<br>
To: powerh-l@lists.sowder.com<br>
Subject: powerh-l Digest, Vol 31, Issue 12<br>
<br>
Send powerh-l mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
powerh-l@lists.sowder.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
http://lists.sowder.com/mailman/listinfo/powerh-l<br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
powerh-l-request@lists.sowder.com<br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
powerh-l-owner@lists.sowder.com<br>
<br>
When replying, please edit your Subject line so it is more specific than<br>
&quot;Re: Contents of powerh-l digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
 &nbsp; 1. Powerhouse and Result Sets/Cursors<br>
 &nbsp; &nbsp; &nbsp;(Adrian.Hudson@eu.averydennison.com)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 18 Dec 2007 16:57:57 +0100<br>
From: Adrian.Hudson@eu.averydennison.com<br>
Subject: Powerhouse and Result Sets/Cursors<br>
To: powerh-l@lists.sowder.com<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<br>
&lt;OFB361EA54.9B7A67F3-ONC12573B5.0055DD10-C12573B5.00579241@averydennison<br>
.com&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi,<br>
<br>
This is my first post, so I hope I manage to follow all the necessary<br>
etiquette!<br>
<br>
Has anyone managed to use a cursor with a result set in Powerhouse and<br>
Oracle (This was introduced in 8.4D)?<br>
<br>
I'm struggling with how the Cursor/Result Set is passed back (and indeed<br>
defined) in the Powerhouse code.<br>
<br>
We are running Oracle 10g with Powerhouse 8.43D1 on AIX<br>
<br>
The text below illustrates the problem.<br>
<br>
Regards,<br>
<br>
<br>
Adrian<br>
<br>
Create package and procedure<br>
----------------------------------------------<br>
<br>
create package powpkg<br>
as<br>
type CursorType is REF CURSOR;<br>
end powpkg;<br>
<br>
create or replace procedure return_wishlist (ocursor in out<br>
powpkg.CursorType)<br>
as<br>
begin<br>
open ocursor for select description from hudsona.boys_wishlist; end; /<br>
<br>
To demo it works in SQLPLUS<br>
--------------------------------------------<br>
<br>
SQL hudsona@DVXD&gt; variable c refcursor<br>
SQL hudsona@DVXD&gt; exec return_wishlist (:c)<br>
<br>
PL/SQL procedure successfully completed.<br>
<br>
SQL hudsona@DVXD&gt; print c<br>
<br>
DESCRIPTION<br>
--------------------------------------------------<br>
Football Game<br>
Keyboard<br>
Shrek DVD<br>
<br>
Powerhouse code<br>
-------------------------- <br>
<br>
sql in css2base &amp;<br>
declare c_cursor cursor for &amp;<br>
call hudsona.return_wishlist &amp;<br>
result set description varchar(50)<br>
<br>
acc c_cursor<br>
go<br>
<br>
------------------------------------------------------------------------<br>
-------<br>
DMS-E-GENERAL, A general exception has occurred during operation<br>
'execute'.<br>
 &nbsp; File: &nbsp;C_CURSOR<br>
------------------------------------------------------------------------<br>
-------<br>
ORA-06550: line 1, column 7:<br>
<br>
PLS-00306: wrong number or types of arguments in call to<br>
'RETURN_WISHLIST'<br>
<br>
ORA-06550: line 1, column 7:<br>
<br>
PL/SQL: Statement ignored<br>
<br>
<br>
<br>
<br>
<br>
<br>
- -----------------------------------------------------------------<br>
The information transmitted is intended only for the person or entity to<br>
which it is addressed and may contain confidential and/or privileged<br>
material. Any review, retransmission, dissemination or other use of, or<br>
taking of any action in reliance upon, this information by persons or<br>
entities other than the intended recipient is prohibited. If you<br>
received this in error, please contact the sender and delete the<br>
material from any computer.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL:<br>
http://lists.sowder.com/pipermail/powerh-l/attachments/20071218/93863039<br>
/attachment-0001.html<br>
<br>
------------------------------<br>
<br>
--<br>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:<br>
powerh-l@lists.sowder.com<br>
Subscribe: &amp;quot;subscribe&amp;quot; in message body to<br>
powerh-l-request@lists.sowder.com<br>
Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in
message body to<br>
powerh-l-request@lists.sowder.com<br>
http://lists.sowder.com/mailman/listinfo/powerh-l<br>
This list is closed, thus to post to the list you must be a subscriber.<br>
Add 'site:lists.sowder.com powerh-l' to your search terms to search the<br>
list archive at Google.<br>
<br>
End of powerh-l Digest, Vol 31, Issue 12<br>
****************************************<br>
<br>
-- <br>
= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
Mailing list: powerh-l@lists.sowder.com<br>
Subscribe: &amp;quot;subscribe&amp;quot; in message body to powerh-l-request@lists.sowder.com<br>
Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in
message body to powerh-l-request@lists.sowder.com<br>
http://lists.sowder.com/mailman/listinfo/powerh-l<br>
This list is closed, thus to post to the list you must be a subscriber.<br>
Add 'site:lists.sowder.com powerh-l' to your search terms to search the
list archive at Google.<br>
</tt></font>
<br>

<BR>
- -----------------------------------------------------------------<BR>
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.<BR>