Two options I can think of.

1) Convert the code to RPG IV and where needed call the C library MI functions.

2) Compile the base RPG with the option GENOPT(*LIST) and copy the relevant portions of the generated RPG into a source member and then insert the required MI instructions.

Option 1 is a better choice for the future - option 2 would be a pain to do manually but you could write code to do it for you - but if you have to write code why not go for option 1!


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

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

Hey folks, here's one you probably don't hear every day:

What are my options for compiling an RPG program that contains embedded MI code?

In my particular case, the RPG is RPG III or RPG/400, and it contains
what appear to be preprocessor directives #BEGIN and #END (the '#' is
in column 1), which delimit the MI code.

The comments at the top of the source indicate that ZMILIB must be in
the library list, and the program object created by the CRTRPGMI
command. As you may guess from the fact that I'm asking, these don't
exist anywhere on our current system, and I'm not having any luck
Googling these things.

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.