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.