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



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, trqs03, trqs04, trqs05,
trqs06, trqs07, trqs08, trqs09, trqs10,
trqs11, trqs12, trqs13, trqs14, trqs15,
trqs16, trqs17, trqs18, trqs19, trqs20,
trqs21, trqs22, trqs23, trqs24, trqs25,
trqs26, trqs27, trqs28, trqs29, trqs30,
trqs31, trqs32, trqs33, trqs34, trqs35,
trqs36, trqs37, trqs38, trqs39, trqs40,
trqs41, trqs42, trqs43, trqs44, trqs45,
trqs46, trqs47, trqs48, trqs49, trqs50,
trqs51, trqs52, trqs53, trqs54, trqs55,
trqs56, trqs57, trqs58, trqs59, trqs60,
trqs61, trqs62, trqs63, trqs64, trqs65,
trqs66, trqs67, trqs68, trqs69, trqs70,
trqs71, trqs72, trqs73, trqs74, trqs75,
trqs76, trqs77, trqs78, trqs79, trqs80,
trqs81, trqs82, trqs83, trqs74, trqs85,
trqs86, trqs87, trqs88, trqs89, trqs90,
trqs91, trqs92, trqs93, trqs94, trqs95,
trqs96, trqs97, trqs98, 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 thread ...

Follow-Ups:

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.