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



Unless you know specific job names I think your going to have to dump the
contents of thee API's and see what they offer up based on possibly what
your looking for.

Example:

All jobs in QINTER, the funnel them down, maybe you have one job with 40
threads, from that you get the job name and api against it to do the
further drill down.

On Fri, Jul 6, 2012 at 10:09 AM, <chamaraw@xxxxxxxxxx> wrote:

Hi,

What I'm looking is multiple jobs who haas multiple threads

A single job may have n number of threads and there are n number of jobs
in my system.

I what to monitor those threads

Chamara
Sent via BlackBerry® from Dialog

-----Original Message-----
From: Vern Hamberg <vhamberg@xxxxxxxxxxx>
Sender: rpg400-l-bounces@xxxxxxxxxxxx
Date: Fri, 06 Jul 2012 08:46:18
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

OK, are you talking about jobs, or are you talking about threads? Do you
have jobs with multiple threads?

At any rate, there is another API - QUSLJOB, I believe - go to the API
Finder as I mentioned, it'll be in a list if you search for "job".

That API lets you specify a subsystem for which you want to list jobs.
Then you use the other API to see thread information - IF that is really
what you mean.

Every job has at least one thread - but if you really mean job and not
thread, OK. But these APIs will get you the information your want.

DSPJOB also has a *THREAD option - something like that - and it can be
directed to an output file, maybe. Not all options of DSPJOB have an
output file capability.

HTH
Vern

On 7/6/2012 8:29 AM, chamaraw@xxxxxxxxxx wrote:
Yes I'm looking for all the jobs in a subsystem


Chamara


Sent via BlackBerry® from Dialog

-----Original Message-----
From: Vern Hamberg <vhamberg@xxxxxxxxxxx>
Sender: rpg400-l-bounces@xxxxxxxxxxxx
Date: Fri, 06 Jul 2012 07:53:08
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

I sent you the API for a single job - are you looking to see threads in
all jobs, or just the job where the program is running? I assumed the
latter.

Vern

On 7/6/2012 7:33 AM, chamaraw@xxxxxxxxxx wrote:
Hi,

Yes I can do that but I'm looking this to be handle from RPG program.

I'm looking for the API to get those details.


Chamara


Sent via BlackBerry® from Dialog

-----Original Message-----
From: Jack Kingsley <iseriesflorida@xxxxxxxxx>
Sender: rpg400-l-bounces@xxxxxxxxxxxx
Date: Fri, 6 Jul 2012 08:17:17
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

there is this: WRKACTJOB SEQ(*THREADS)



On Fri, Jul 6, 2012 at 7:58 AM, Vern Hamberg <vhamberg@xxxxxxxxxxx>
wrote:

Without looking, I would guess that you want the QUSRJOBI API -
retrieve
job information.

For the archives - Have you seen the API Finder on IBM's InfoCenter?
You
put in a word or phrase, like "job", and it'll give a list - you can
see the descriptions and look at the documentation there.

The URL is different for every release, just go to InfoCenter and look
under the Programming item in the menu.

HTH
Vern

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

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.