<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Abhinetri:<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp; By default Oracle&nbsp;temporary&nbsp;table rows are transaction based, i.e. they are cleared after a COMMIT.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp; <A href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:48812348054">http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:48812348054</A><BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;If you&nbsp;use "on commit preserve rows" on the &nbsp;creation of the temporary table&nbsp; then the temportary data<BR>
&nbsp;&nbsp; survives a&nbsp;COMMIT but is not viewable to new session. If you are using&nbsp;PowerHouse OPEN numbers&nbsp;with Oracle<BR>
&nbsp; &nbsp;you&nbsp;get a&nbsp;new session with each distinct open number. <BR>
&nbsp;<BR>
&nbsp;&nbsp; The following reference again is version 8.4x.y<BR>
&nbsp;&nbsp;&nbsp;<FONT size=1><BR>
&nbsp;<A href="http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/powerhouse/8.4g/PHRDB.pdf">http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/powerhouse/8.4g/PHRDB.pdf</A>&nbsp;&nbsp; <BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp; You may want to use the Quick Debugger to trace the values going into the stored procedure.<BR>
&nbsp;<BR>
&nbsp;<BR>
Regards,<BR>
&nbsp;<BR>
Peter<BR></FONT>
&nbsp;<BR>
<BR><BR>&nbsp;<BR>
<HR id=stopSpelling>
Date: Thu, 25 Mar 2010 14:33:57 +0530<BR>From: abhinetri_cse@yahoo.co.in<BR>Subject: RE: Create,execute and use the cursor<BR>To: peterbateman808@hotmail.com; powerh-l@lists.sowder.com<BR><BR>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV><FONT color=#0000bf>Thanks Peter&nbsp; - I do not have any manual on 8.13.D.</FONT></DIV>
<DIV><FONT color=#0000bf></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000bf>Please let me know if you have any idea on the below case as why it is happening </FONT></DIV>
<DIV><FONT color=#0000bf></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000bf>I have created a pl/sql procedure to populate a temp table based upon the input text entered at the qks screen</FONT></DIV>
<DIV><FONT color=#0000bf>When I execute the procedure from TOAD ,the temp table gets populated,but when I execute it from powerhouse (i.e I called the procedure in find procedure of .qks file)the table is not getting populated.</FONT></DIV>
<DIV><FONT color=#0000bf></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000bf></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000bf>Regards</FONT></DIV>
<DIV><FONT color=#0000bf>Abhinetri</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>--- On <B>Thu, 25/3/10, Peter Bateman <I>&lt;peterbateman808@hotmail.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Peter Bateman &lt;peterbateman808@hotmail.com&gt;<BR>Subject: RE: Create,execute and use the cursor<BR>To: abhinetri_cse@yahoo.co.in<BR>Date: Thursday, 25 March, 2010, 4:51 AM<BR><BR>
<DIV id=ecxyiv489492293>
<STYLE>
.ExternalClass #ecxyiv489492293 .ecxhmmessage P
{padding:0px;}
.ExternalClass #ecxyiv489492293 .ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi Abhinetri<BR><BR><BR>Your version of PowerHouse is very old. Do you have the reference manual for PH8.13.D?<BR><BR>The following is a link to the 8.4x.y manuals.<BR>http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/powerhouse/8.4e/qdesign_reference.pdf<BR><BR>Check out DECLARE CURSOR statement<BR><BR>Essentially a cursor can be treated like a file in QDESIGN. Qdesign will generate statements<BR>like open cursor, fetch, etc.<BR><BR>if a cursor is your primary source of data for a screen<BR>you say something like:-<BR><BR>SQL in D_ORDERS declare xyz cursor for select c1, c2, c3, c4, c5&nbsp; from ORDER_TABLES<BR><BR><BR>Cursor xyz primary key { list of columns that make a unique combination }<BR><BR>Regards,<BR>Peter<BR>&nbsp;<BR>
<HR id=ecxstopSpelling>
Date: Tue, 23 Mar 2010 16:05:27 +0530<BR>From: abhinetri_cse@yahoo.co.in<BR>Subject: Create,execute and use the cursor<BR>To: powerh-l@lists.sowder.com<BR><BR>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: inherit" vAlign=top>
<DIV>Hi All</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please let me know how to declare ,execute a cursor and display the result set of cursor in .qks file i.e QDESIGN .The powerhouse version&nbsp;I use in 8.13.D</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks In Advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Abhinetri.</DIV>
<DIV>&nbsp;</DIV></TD></TR></TBODY></TABLE><BR>
<HR SIZE=1>
The INTERNET now has a personality. YOURS! <A href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" rel=nofollow>See your Yahoo! Homepage</A>. <BR>
<HR>
Take your contacts everywhere. <A href="http://go.microsoft.com/?linkid=9712958" rel=nofollow>Try Messenger for mobile</A> </DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR>
<HR SIZE=1>
Your Mail works best with the New Yahoo Optimized IE8. <A href="http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/">Get it NOW!</A>.                                               <br /><hr />Stay in touch. <a href='http://go.microsoft.com/?linkid=9712959' target='_new'>Get Messenger on your phone now.</a></body>
</html>