× 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.



Rob,

I Missed the original post, but Simon is correct. You do
need an SQLDA or to use the Call Level Interface (CLI).
If you are interested, you can download a set of procedures
I created that supports running dynamic SQL statements
and the SQLDA. They are part of the iSeries-toolkit.

Here are some links to an example that shows how this is used
and also the source for the DYNSQL prototype and module:

http://sourceforge.net/docman/display_doc.php?docid=8869&group_id=39365


http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qprotosrc/dynsql.proto.irp?rev=HEAD&content-type=text/vnd.viewcvs-markup

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qrpglesrc/dynsql.sir?rev=HEAD&content-type=text/vnd.viewcvs-markup

There is a lot more support for the SQLDA and I am working
on a file generation procedure (you give it an SQL statement
and it will create a file based on the statement). To download
the full package, go to:

http://iseries-toolkit.sourceforge.net

David Morris

>>> shc@flybynight.com.au 01/28/02 05:55PM >>>

Hello Rob,

You wrote:
>If this is my problem, then help me understand to do dynamically
select
>the variable types on the Execute FetchStmt using...
>For example, the next time I run this program it may be :AlphaK,
:Packed,
>:PackedR

It's been a very long time since I did anything like this but I think
you
need to build an SQLDA to accomplish this.  You could probably use the
SQL
CLI APIs also.

Regards,
Simon Coulter.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.