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



Mike,

I don't know if anyone else has mentioned this, but the RUNRMTCMD also 
passes back a spool file, and we parse that.  It's a royal pain in the 
neck, but it works.

Mike E.







On Thu, 2004-05-06 at 14:02, Mike Silvers wrote:
> I need to run an RPG program on a remote 400 from a source 400.  I also 
need
> to pass parameters for the call and have parameters returned.  I have
> researched the RUNRMTCMD command in the archives, but all of the past
> messages seem to revolve around PC remote calls.

Mike

As others have mentioned you can't get parameters returned directly, but
there may be a way to emulate them without creating additional
files/data areas/reports to interrogate. 

When RUNRMTCMD completes it passes back to the calling routine any
messages generated on the target system. If your remote application
sends completion messages, with the return values in the MSGDTA, you
should (theoretically) be able to do a RCVMSG and extract/parse the
MSGDTA info. Worth a try anyway.

Regards, Martin




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.