STRPCCMD - pausing in RPG code until window becomes active

Use this board to ask questions or have discussions with other Genie users.
Post Reply
jonAgeas
New User
Posts: 7
Joined: Wed May 29, 2013 10:37 am
First Name: jon
Last Name: ****
Company Name: Ageas Insurance Limited
Country: United Kingdom
Contact:

STRPCCMD - pausing in RPG code until window becomes active

Post 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
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest