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



On Mon, 2010-01-18 at 15:22 -0600, Jerry Adams wrote:
I have often passed parameters to a program from a /36 procedure, such as:
CALL PGM(PGMA) PARM('PARM1' 'PARM2'), or
CALL PGM(PGMA) PARM(?1? ?2?)
where the parameter conditions something in the callee (PGMA).

Now I would like to be able to receive information from the callee to condition something in the /36 procedure.

If 8 bits suffice, you can use external indicators.


I tried the second example, but the call resulted in a pointer error.

Using the local data area works as an interface between the 36E and an RPG IV program, but not if the program (PGMA, for example) is called by another RPG IV program as the LDA is not updated until the caller ends.

I think an explicit OUT operation would get the infomation back to you.

All this is from very old memory.

Cheers,
Terry.



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.