Calling an RPG from a Win/Web application

30 pts.
Single sign-on
Hi, I look for a SSO solution. My customer wants to call a native RPG program (with displayfile) starting from a Graphical (Windows or browser) application without logon since the user is already signed in. All suggestions are welcome. thx Mathy

Answer Wiki

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

Configure an Emulator session to get an active session on your AS/400. When you got an active session, choose “Communication” > Configure on the Menu bar of the session. Press the “Properties” button besides the system name and specify “Use operation navigator default” as User ID signon information. Same thing for the “Security” Radio button below.

Then Open ISeries Navigator. Connect to your AS/400 and on the “My connection level” right click” with your mouse and then choose “Environment”. Open the “My connection” list by clicking on the “+”. Get on the aimed platform and select the “Properties” Button. Then, get on the”Connection” tab and specify “Use Windows user name and password, No prompting” radio button.

On the emulator session, start recording a macro and login to the AS/400 with the desired user profile and password and save the macro. Then, go on the menu bar of your emulator session and choose “Edit”>”Preference”>”Marco/script” and specify your macro name.

Finally, attach an hyperlink on your Windows gismo to your Emulator Icon and there you go !

I’ve tried it with a dumb Visio presentation saved in html and it work’s fine !

Have fun !


Hi Mathy,

Nonetheless this might be not as a good contribution … there it goes:

You should investigate about the HATS and/or Web Facing products that IBM include in the WDSCi (now Rational for i), I have understood that they provide a good solution for taking PC5250 screens to Web.




Simplest and most flexible is simply to send a stored procedure CALL to the AS/400 database. If the program does not have any OUT or INOUT parameters, you don’t even need to create a stored procedure definition.

However, your definition of “the user is already signed in” is a little vague. I’ll assume you mean that SSO has already authenticated the user to the AS/400.

You might simply need to run RMTCMD on the PC. iSeries Access installs RMTCMD.


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.

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.

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


Share this item with your network: