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