You can do it, the steps are:
* connect to remote system
* call program using the SQL CALL command
I'm 99% certain both of these topics have been discussed before but
maybe not together. Also, the SQL manuals do cover these topics but not
at the same time.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Sarvapriya_Tripathi@xxxxxxxxx
Sent: Thursday, June 14, 2007 4:12 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Calling a Pgm on a Remote i5 using RPG
Is this possible using SQLRPG (or otherwise). I searched the forum but
did
not find a conclusive answer. I need to connect to multiple i5s and run
a
program (it can be a stored proc as well) passing some parms and
receiving
response in return parms. I thought I saw a posting from Rob from 2001
but
did not see any responses on this -
http://archive.midrange.com/rpg400-l/200103/msg00521.html
Can someone lead me in the right direction. All comments and sample code
are appreciated.
Regds
Sarvapriya
************************************************************************
******
The information contained in this electronic communication and any
accompanying document is confidential, may be attorney-client
privileged,
and is intended only for the use of the addressee. It is the property
of
Ryder System, Inc. Unauthorized use, disclosure or copying of this
communication, or any part of it, is strictly prohibited and may be
unlawful. If you have received this communication in error, please
notify
the sender immediately by return email, and destroy this communication
and
all copies of it, including all attachments. Electronic communication
may
be susceptible to data corruption, interception and unauthorized
tampering
and Ryder disclaims all liability of any kind for such actions or any
consequences that may arise directly or indirectly therefrom.
************************************************************************
******
As an Amazon Associate we earn from qualifying purchases.