|
Mark, I am not sure I follow you, but to dynamically change the input area you need to use an SQLDA. So you end up with "FETCH FROM cursor USING DESCRIPTOR :descriptor". If you are looking for some examples, the iSeries-toolkit contains one in the DYNSQL module at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qrpglesrc/dynsql.sir?rev=HEAD&content-type=text/vnd.viewcvs-markup You can download the whole package at www.iseries-toolkit.org. David Morris >>> mlazarus@ttec.com 03/18/02 06:21PM >>> I would like to run a dynamic SQL statement with an undetermined (at compile time) number of placeholder variables. Building the PREPARE string w/ the placemarkers is not a problem. My question is how do I specify the "OPEN cursor INTO" dynamically? TIA. -mark
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.