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



Here is a sample of the code.  If you have the time,
I'd appreciate comments.


You're writing a lot of unnecessary code just to mimic a few RPG I/O op codes. You're using 284 lines (plus declarations not shown) to mimic an "F" spec, open, close, & chain. And using SQL in that context won't perform as well as the native op codes.

If you'd like to use SQL, consider writing a generic high-level wrapper around CLI, and using it to access any number of  "tables" and "views" from any number of programs. Views enable you to streamline your RPG code by extracting rather complex SQL Select statements, using external data definitions.

I'll share an example of a PDF report where the data comes from a dynamically generated SQL result set.

PDF Report:

http://www.radile.com/rdweb/temp/sch_crs_catlg.pdf


RPG Code:

http://code.midrange.com/d2dfaae4db.html


This is an example of a typical interface / design pattern that we use for generating colorful, graphical, reports. 


-Nathan

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.