× 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.



Thank you Vern,

We are on V4R5 and not going to V5R1 for some time.  We will have to find
another way to do this monitoring, since we do not have a system operator 
watching the system all day.  Maybe some other on this thread can give me
some other suggestions.

Thank you again,

Jim

-----Original Message-----
From: Vern Hamberg [mailto:vhamberg@centerfieldtechnology.com]
Sent: Thursday, January 30, 2003 3:23 PM
To: Midrange Systems Technical Discussion
Subject: Re: Using QUSRJOBI


Jim, You need to be at V5R1 to use QUSRJOBI to get CPU%. And you need to 
use the QUSLJOB API first, to get a list of active jobs. Then you loop 
through the list, using the QUSRJOBI API.

But the Open list of jobs API (QGYOLJOB) can give you this info in one shot 
- it returns a list of entries, and you can say that you want this 
information only. This API has been around since V3R7, but the CPU% info 
has only been available, too, since V5R1.

QUSLJOB uses a user space, and there are programs that will help you 
navigate through it. See the API Programming manual if you've not done this 
before.

QUSRJOBI uses a structure to return the data for the job specified. In CL 
you need to declare a variable of the length of that structure (look at 
QSYSINC/H, member QUSRJOBI for the fields you need - add up the lengths). 
Then you need to substring the return variable to get the info you want. 
The JOBI1000 format has CPU% over a certain elapsed - this is new in V5R1. 
There's a reset parameter used with that format.

At 10:12 AM 1/30/2003 -0600, you wrote:
>I am looking for an API or a way to submit a job to monitor for any jobs
>that are using over 50, 60 or more % of the system and/or a job that has
>been running for over 45 minutes.  Is anyone using the QUSRJOBI in a CL, if
>so could I see an example of your code?  If anyone is doing what we are
>trying to do, could I see the code to do it?  I am not looking to buy any
>software or utility.  I have searched the archives for something, that is
>where I got the API QUSRJOBI from.  Any help would be greatly appreciated.
>
>TIA
>Jim


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.