|
I've get a series of 100 fields that I only need 1 value from. I'm doing a SELECT INTO so a dynamic statement won't work. If it did, my statement would be pretty simple. the program compiles OK, but I get
SQL0030 during execution. "Number of host variables less than result
values." Sorry if the formatting of the code below is funky...
Any thoughts on this? What am i doing wrong here? TIA and please don't embarrass me too bad! :) Mark
The Data structure:
D allRequests...
D DS
D theRequests 7P 0 dim(100)
The SQL statement:
exec sql
select trqs01, trqs02, <<SNIP trqs03 to trqs99>>, trqs00
into :allRequests
from FILE1
where TCLS = :c2Class and TVEN = :c2Vendor
and TSTY = :c2Style and TCLR = :c2Color
and TSIZ = :c2Size and TRID = :rowId ;
As an Amazon Associate we earn from qualifying purchases.
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.