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



If the remote server is AS/400, you can use remote data queue to data area as your interface for two systems.

local system setup:
CRTDDMF remoteAS400 for DDMF used by IP or SNA protocol for SBMRMTCMD used
CRTDTAQ (QGPL/RMT400DTAQ) RMTDTAQ(QGPL/DTAQ) by SNA or RDB(create with WRKRDBDIRE used IP protocol)

remote AS400 system:
CRTDTAQ DTAQ(QGPL/DTAQ)

local program:
SBMRMTCMD CMD(CALL PGM(rmt-program) PARM(parm1 parm2 parm3) to remote system
CALL QRCVDTAQ parm ('QGPL' 'RMT400DTAQ' 'daentry' 'dqentrylen'  -1)
the dqentry is the rmt-pgm response.

submitted rmt-pgm:
send result to qgpl/dtaq

best regards,

Vengoal


-------- Original Message  --------
From: "Charles St-Laurent" <dringpiece@xxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Subject: How to call a remote program and getting a return value into a passed parameter?
Date: 2006/8/21 PM 11:16

Hi!

I want to call a program on a remote server. The remote call looks like
this:

CALL MY_PROGRAM PARM(PARM1 PARM2 PARM3 PARM4)

The three first paramters are passed with a value and the last one is blank.
So I want this CALL to be executed on the remote machine I want to receive
the PARM4 value back on my local machine...

What is the simplest way to do so?

Thanks in advance for your answers

Charles




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.