×
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.
"As another "fly in the ointment"....we're running V5R4"
So what I have done for my extra-large queries is to load them into a compile time array then read the array into the varying character field then use that carrying char field as would other dynamic statement variables.
In 5.4 format
D QRY_STMT S 100a DIM(100) CTDATA
D STMTSQL S 32740a Varying
D IDX S 10I 0
...
For IDX = 1 to %ELEM( QRY_STMT ) by 1;
STMTSQL += %TRIM( QRY_STMT( IDX ) ) +' ';
Endfor;
...
// Follow normal prep, declare, open, fetch and close procedures.
** - QRY_STMT
select field1, field2, field3, field4
from mytable
where field1 = 'A'
Thanks, Matt
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.