|
an
I made two mistakes in my code sample. (Double facepalm)
- I should have made exdaep_full_t a template so the compiler would give
error if it was used in a calculation
- I should have used datain in the assignment to Upper
Here's a more correct version of my suggestion.
/copy qsysinc/qrpglesrc,ezdaep
dcl-ds ezdaep_full_t template;
header likeds(EZDSQLF2);
data char(10000); // not sure how big this should be
end-ds;
dcl-pi ODBCEXIT;
allow char(1);
datain likeds(exdaep_full_t);
end-pi;
dcl-s Upper varchar(128);
Upper = %subst(datain.data : 1 : datain.header.EZDQLSTL);
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.