Page 1 of 1

STRPCCMD - pausing in RPG code until window becomes active

Posted: Wed May 29, 2013 12:22 pm
by jonAgeas
Hi

I am using Genie to display a screen that uses STRPCCMD to fire up a Word document.

While Word is the active window, the Client Access session waits at the STRPCCMD line of code until the session becomes the active window again. This is essential for us as we want the user to save and close the Word doc before continuing through the green screens.

I have the Word doc firing up fine from the Genie version of the screen, but the browser is moving on to the next screen (in the window behind the Word doc) rather than waiting.

Is there any way in Genie to replicate the way it 'waits' in Client Access?

Thanks
Jon

Re: STRPCCMD - pausing in RPG code until window becomes active

Posted: Fri May 31, 2013 11:30 am
by David
Unfortunately, the 'wait' cannot be replicated.

In Client Access, the 5250 emulation is running on the PC, so it just runs the command and waits until its done.

In Genie, though, the 5250 emulation is running on the IBM i server itself, and obviously can't run the command right then and there. So what it does is stores the command until the point when a screen is going out to the browser. It then sends the command out to the browser for execution on the PC.