Page 1 of 1
pui call to os400 command
Posted: Thu Jun 30, 2011 10:17 am
by java400man
Is it possible to call an Iseries command object ex: wrksplf, signoff, etc. from genie or pui api?
Thanks,
Re: pui call to os400 command
Posted: Thu Jun 30, 2011 10:38 am
by David
There are a couple of ways this can be done...
If you are using Profound UI 3.0.0 or higher, Genie now integrates completely with PUI rich display file programming.
In V3, you can start the session in Genie. This gives you a real 5250 session (but running in the browser) where any OS command can be run as usual. They can be called from a command line by the user, or by using a CL program or QCMDEXC call in the application. Just like green-screen.
Then, assuming you have PROFOUNDUI on the library list of the job, you can run PUI rich display file applications in the job. Just CALL them as you would any green-screen application and they will appear.
This is the most seamless approach -- run the session through Genie to begin with and call the PUI apps through the 5250 session. If your PUI applications then start calling WRKSPLF, SIGNOFF, etc, it will automatically switch back/forth between 5250 and PUI display.
If you start the session by calling a PUI application outside of Genie, it's a bit more difficult as the job is then not an interactive job where you can run 5250-based OS commands.
However, it is possible to pop-open a separate window/session to Genie and get the user into a specific screen (i.e. WRKSPLF) automatically using Genie's macro capability.
I would certainly recommend looking at approach #1 first, though.