685 pts.
 Calling non-as/400 programs via an RPGLE or CL program
CL, RPG, RPGLE, VB
Can it be done? If so, how would I go about doing this? Let's say I just have a small VB program I wrote that displays a picture. Can I let's say somehow link the VB program call to a CF key, like CF08?

Software/Hardware used:
ASKED: June 24, 2008  3:44 PM
UPDATED: April 29, 2010  6:07 AM

Answer Wiki:
Hi, I'd say it depends on how you're connecting to the AS/400. If you're using Clinet Access (or whatever it's called these days), you should be able to use the STRPCCMD to kick off a program or script on your PC. If you're using some other way of connecting (Rumba,Mochasoft, etc), then you'll have to check if/how they implement this. Maybe they have some sort of api that you can use. Regards, Martin Gilbert. ===================================================== STRPCCMD is often the best choice. Under some circumstances, as long as it's a telnet connection, you can retrieve the IP address of the client and use RUNRMTCMD. Both have advantages and disadvantages. Be aware that STRPCCMD has no significant security mechanism. Programs can be caused to execute with no authentication to the PC. OTOH, a kind of disadvantage for RUNRMTCMD is the need for authentication. Tom
Last Wiki Answer Submitted:  April 29, 2010  6:07 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _