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



This is relatively easy.  I am currently doing this with a Java program on a
PC and RPG on the 400.  There are several options.  If you are just calling
an RPG program, you can use direct call methods from VB (I have examples
somewhere on my server) or use sockets to call the RPG.  In the Java program
I am using, I call the RPG program using sockets.  What I do is setup the
call parameters in an XML document.  There is a socket server program (also
written in RPG) that takes the XML request and calls the RPG program.  The
RPG program returns a parm with the data in an XML format.  The Java program
then parses the XML and uses the data from the RPG program.

A search on the web for "Visual Basic RPG call examples" comes up with a
book from MC Press (http://mc-store.com/mc-store/asclienprogw4.html).  This
might be another place to look.

Mike

----- Original Message -----
From: "Mark A. Manske" <mmanske@minter-weisman.com>
To: "RPG400-L (E-mail)" <RPG400-L@midrange.com>
Sent: Wednesday, September 18, 2002 5:24 PM
Subject: api/socket solution to talk to a PC


> I am out on a limb here - and desperate for a quick study -
>
> Here is the scenario -
>
> On V5R1, ile/rpg running, I want it to talk to a PC Visual basic program
> running on the same PC as the 5250 emulation program is -
> will have three copies of rpg running, but only one pc will have the VB
> program on it,
>
> The VB program will be written by a company to control a switch to turn
off
> a conveyer
> when my RPG program does not say it was a valid/good scan (bad customer
> number/order# ect.)
> or time out due to reading eye being out of alignment -
>
> my question is this ---
>
> What the heck am I trying to do (api/socket programming or play space
> invaders)
> and if so, where can I learn how to do this by the end of the week???
>
> I love putting my foot in my mouth before I look up how to do something -
>
> Thanks for the advice and help
>
>
> Mark A. Manske
> Fleming CSD - Plymouth Division
> Sr. Project Lead
> Phone      (763) 545-3700 extension 273
> Web Site  http://www.minter-weisman.com
> E-Mail      mailto:mmanske@minter-weisman.com
>
>
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>
>




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.