× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



hmmmmm...

well, what about QAQQINI?
Take a look at OPEN_CURSOR_CLOSE_COUNT and OPEN_CURSOR_THRESHOLD

another one that _might_ apply... REOPTIMIZE_ACCESS_PLAN

Note that this file is read for each SQL statement, so you can update
the values on the fly in a program...



On Thu, 2006-08-24 at 10:48 -0400, rob@xxxxxxxxx wrote:
We have a program that does something like
do...
  exec sql drop alias a1;
  exec sql create alias a1 as ...;
  exec sql execute immediate :stmt; // perform an insert into a file based 
on using alias a1 in a subselect
enddo;

The problem is that it doesn't use the recreated alias that is now based 
on a file in a new library.  It's reusing the odp from the first time the 
alias was created.  If we run the program in debug, copy the subselect to 
the clipboard, F21 for command line, prompt RUNSQL and paste the subselect 
in there it uses a new odp and retrieves the right data.  Close cursor is 
set to endmod.  Not that we're using any cursors, but just in case you 
need to know that.

Alternatives we're kicking around:
- Using RCLRSC before the drop alias.
- Instead of execute immediate use QCMDEXC and RUNSQL.

Rob Berendt
-- 
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.