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



GENOPT(*LIST) is kinda fun - I learnt about it when I was first introduced to System/38 back in CPF v5 timeframe. I was doing COBOL at the time - and if anything the commenting in the generated COBOL code is even better than for RPG.

We used to use the MI listing to help us work around the bugs in the COBOL compiler that we encountered while doing an NCR -> S/38 conversion. Later when I joined IBM in 1986 the compiler team were amazed at the number of bugs I reported within the first few months I worked there. We’d been working round them for years but we never had the time to go through the reporting process!

Pity something similar wasn’t doable with the ILE compilers - but that’s another story.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Oct 23, 2014, at 5:59 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:

First of all, thanks to everyone who responded.

Jon, I had never thought to explore GENOPT(*LIST), and now that I
have, I must say I'm pretty impressed. The generated MI code even has
comments! As for the C-wrapper approach, once you mentioned it, I
started doing some more Googling and found this, which you may find
familiar:

http://www.ibmsystemsmag.com/ibmi/developer/rpg/Utilizing-MI-Functions-in-RPG-Programs/

Yeah, it's 10 years old, but that still makes it several years newer
than the program I'm dealing with.

I have follow-up comments for some of the other respondents as well,
but right now I've got to run.

John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.