Hi James,

I use the following code in a CL program:

DCL VAR(&RCVR100) TYPE(*CHAR) LEN(80)
DCL VAR(&RCVR100LEN) TYPE(*INT) LEN(4) VALUE(80)
DCL VAR(&SBSSTS) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&RCVR100 29)
DCL VAR(&ERROR) TYPE(*CHAR) LEN(8) +
VALUE(X'0000000000000000')

CALL PGM(QWDRSBSD) PARM(&RCVR100 &RCVR100LEN +
SBSI0100 'MYSBS *LIBL' &ERROR)
IF COND(&SBSSTS = *ACTIVE) THEN ...

Hope this helps.


Yours truly,

Glenn Gundermann
Email: glenn.gundermann@xxxxxxxxx
Cell: (416) 317-3144


On 31 August 2016 at 13:56, James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
wrote:

Is there a way for a CL program to check whether a subsystem is up?

We have a situation in which we want a Tomcat server running in its own
subsystem, if available, but we can't guarantee that the subsystem is
actually up, and we don't want it stuck in an inactive job queue.

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].