× 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 think the majority of RPG devs would say, "it ain't broke, stop trying
to fix it!".


I think I mentioned previously that we use a high-level wrapper around the
SQL CLI interface. Nearly all our inquiry and report applications use it.
Following is an excerpt for report "detail" lines.

csrRefresh();

dow csrGoto(csr_next);
rptRecSet('DETAIL');
rptVarSet('rf':csrColStr('REFID'));
rptVarSet('nm':%trimr(csrColStr('NAME')));
rptVarSet('tm':%char(csrColTime('TM')));
rptVarSet('sq':%char(csrColInt('SEQN')));
rptVarSet('it':%trimr(csrColStr('ITEM')));
rptVarSet('rt':%trimr(csrColStr('RATE')));
rptVarSet('am':%editc(amount:'2'));
rptVarSet('ac':%trimr(csrColStr('ACCOUNT')));
rptRecWrt('DETAIL');
enddo;

The "csrColxxx()" procedures return column values - like getters - except
the column name is passed as the parameter. This interface is not subject
to level checks when table structures change.

Thus the majority of our RPG modules are not subject to structural changes
to DB tables.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.