× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 15/02/2008, at 8:38 PM, Åke Olsson wrote:

I am working on a "WRKACTJOB" like display which will only show jobs in "MSGW" status. This is so that the support guys will not have to wade through all the other hundreds of jobs that they will not have to worry about.

I have found ways to create the same functionality for all the important options that are available on "WRKACTJOB" - except one. I have not yet found a command or an API that gives me the function to see the message and enter the reply (same as option 7 on WRKACTJOB).

Any ideas on how to go about this?

I see Bruce has indicated that VRM610 makes this much easier (in so far as you can get the message queue and message marker but you still have to write all the message handling and screen code).

The message queue and message marker are stored in the job's Work Control Block. This, of course, requires system-state to access at security levels above 30. This still leaves you having to write the message handling and screen code yourself.

IBM's 7=Display message function uses the QWCSDSMR program to encapsulate all the screen and message stuff. It would be very nice if this, or something like it, were made available as an API. However, QWCSDSMR as it currently stands suffers from two problems:

1) It relies on the existence of specific UIM variables
2) It is a system-domain program

If you use UIM for your screen handling you can supply the variables by defining them in your UIM and populating them with the job information. Then define option 7 in UIM to invoke QWCSDSMR. On security levels above 30 this will fail because UIM will not invoke system-domain programs (usual domain/state errors) so you need a piece of user-domain/system-state glue code (CL will do) that UIM will invoke and the glue code can invoke QWCSDSMR.

Easy eh?

Now that VRM610 provides easy access to the necessary message detail this would make a nice utility to encapsulate all the message handling and screen processing.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.