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



Yep this may help I will give a try and see.

Chamara

Sent via BlackBerry® from Dialog

-----Original Message-----
From: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
Sender: rpg400-l-bounces@xxxxxxxxxxxx
Date: Fri, 06 Jul 2012 10:57:34
To: RPG programming on the IBM i / System i<rpg400-l@xxxxxxxxxxxx>
Reply-To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Subject: Re: Monitoring Threads in a Job

Hello Chamara,

I haven't written a program that "monitors threads", so the best I can
do is take an educated guess.

API documentation is found under "Programming / Application Programming
Interfaces" in the Information center. When you know what you want to
do ("monitor threads") but you don't know which API to call, then I'd
suggest clicking on "APIs by Category" so you can see the types of APIs
available:

So, at this point, if you've clicked IBM i 7.1 Information Center /
Programming / Application programming interfaces / APIs by Category, you
should be here:

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/aplist.htm

Notice that there's a category relating to "work management". Work
management relates to how the operating system manages it's workload
(subsystems, jobs, threads, etc). So it seems a likely candidate. So
click "Work Management APIs". That will put you here:

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/wm1.htm

In this API list, I see several APIs that might be helpful. Granted,
there isn't a "Get all threads in a subsystem API", but there are APIs
that say:
"List Active Subsystems"
"List jobs"
"Open List of Threads"
"Retrieve Thread Attribute"

Surely, these APIs, when used together in a program, would be able to
accomplish your purposes?

Please let me know if that helps.


On 7/5/2012 11:31 PM, Chamara Withanachchi wrote:
Hi,

I want to monitor Threads in side a job from a RPG program is there a
methoud/API to achive this.

Thank you in advanced




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.