Calling non-as/400 programs via an RPGLE or CL program

690 pts.
Tags:
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following