pui call to os400 command

Use this board to ask questions or have discussions with other Genie users.
Post Reply
java400man
New User
Posts: 7
Joined: Thu Jan 20, 2011 4:32 pm
First Name: Rufino
Last Name: Medicielo
Company Name: Summit
Contact:

pui call to os400 command

Post by java400man »

Is it possible to call an Iseries command object ex: wrksplf, signoff, etc. from genie or pui api?

Thanks,
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: pui call to os400 command

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

Who is online

Users browsing this forum: No registered users and 0 guests