Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Job or Subsystem active check?

1,488 views
Skip to first unread message

Terry St.Jean

unread,
May 11, 1998, 3:00:00 AM5/11/98
to

Is there a way to check if a subsystem is active or if a job is active.

--
Terry St.Jean
tst...@ibm.net

Martin Neugebauer

unread,
May 11, 1998, 3:00:00 AM5/11/98
to

API QUSLJOB gives you information about jobs - all infos you need.

Surely there is also an API to give you subsystem info - check the
system API reference manual

Martin

tho...@inorbit.com

unread,
May 12, 1998, 3:00:00 AM5/12/98
to

Martin:

The Retrieve Subsystem Information (QWDRSBSD) API (one of the work management
APIs) can return the current status of a subsystem. I use it in our NIGHT
process to help control shutting selected subsystems down and getting them
started later.

Tom Liotta

In article <35571030...@xpoint.at>,


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading

OSITim

unread,
May 14, 1998, 3:00:00 AM5/14/98
to

The easiest way to determine if a subsystem is active or not is to attempt an
ALCOBJ *EXCLRD on the *SBSD object. If it works the subsystem is not active.

tho...@inorbit.com

unread,
May 15, 1998, 3:00:00 AM5/15/98
to

...unless another program has done an ALCOBJ *EXCL. Unlikely, I know; but in
some shops, the difference is crucial. Your suggestion is excellent for
99.999+% of the cases, though.

Tom Liotta

In article <199805140131...@ladder03.news.aol.com>,

OSITim

unread,
May 15, 1998, 3:00:00 AM5/15/98
to

You'll notice that I said that if the allocate works then the subsystem is not
active. I said nothing about what it means if the allocate fails. This could
indeed mean that the subsystem is active, or that another job has allocated the
subsystem description, or that the sbsd is not found, or any number of other
things.

>...unless another program has done an ALCOBJ *EXCL. Unlikely, I know; but

>in some shops, the difference is crucial. Your suggestion is excellent for<BR>


>99.999+% of the cases, though.
>
>Tom Liotta
>
>In article <199805140131...@ladder03.news.aol.com>

Armando Kovacic

unread,
May 22, 1998, 3:00:00 AM5/22/98
to

I check it with the following commands:

WRKSBSJOB SBS(sbs_name) OUTPUT(*PRINT)
MONMSG MSGID(CPF1003) EXEC(GOTO ...) +
/* if cpf1003 is issued then sbs is not active... */

You'll get 100% answer, but you'll also get a spool file...

It works fine on v4r1m0. I don't know it it works on earlier
releases...


Regards,
Armando

Martin Neugebauer

unread,
May 25, 1998, 3:00:00 AM5/25/98
to Armando Kovacic

Pleeeease ... Never never never dump something to a a spoolfile and read
thru it. There are APIs to
do any trick you want.
(QUSRJOBI in this case).

Martin

0 new messages