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

Yes, James is exactly correct. If the RPG program is accepting just ONE parameter (no matter what size), you must define the Operand List in the MI program the same way; that is, with just one element (the pointer to the structure).

In the MI program, you can subdivide the structure using "subvariables" [to coin a term] with the DEF() POS() keywords; very similar to a data structure in RPG. This is *Defined storage (we can now do a similar trick in CL, after all these years).

The MI language has certain limitations about INITializing objects. I remember that when you define an operand list, the variables it refers to must be defined previous to the operand list itself, in the MI source. Perhaps the same is true with space pointers; I am not sure. At any rate, the translator will catch you if you do it wrong!

Hope that helps,

Rich Hart

----- Original Message ----- From: "James Lampert" <jamesl@xxxxxxxxxxxxxxxxx>
To: "MI Programming on the AS400 / iSeries" <mi400@xxxxxxxxxxxx>
Sent: Friday, December 07, 2007 7:53 PM
Subject: Re: [MI400] calling RPG ILE with parameter list from MI

Denes L wrote:
Hello all,
I am trying to call an RPGLE pgm from MI passing parameters to it.

Well, for one thing, if you're passing two parameters AS SEPARATE
PARAMETERS, shouldn't you be accepting them that way?

Also, I always define the field first, then the space pointer INITed to
it. I've never heard of it working the other way around.

James H. H. Lampert
Touchtone Corporation

This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 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.