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



Hi Pedro,

You can use the RTVCFGSTS command in a CL program. For example,

PGM
DCL        VAR(&STATUS) TYPE(*DEC) LEN(5 0)
RTVCFGSTS  CFGD(devicename) CFGTYPE(*DEV) STSCDE(&STATUS)
...
Do something with &STATUS
...
ENDPGM

Prompt the RTVCFGSTS command and request help on the "CL variable for status
code" parameter. That will give you a list of the various status values and
what they mean.

Have fun!
Richard


-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of pedro.reis@valeo.com
Sent: Thursday, March 14, 2002 12:20 PM
To: midrange-l@midrange.com
Subject: device status



Is there any as400 command , that retrieves the status of a device (like
vary on or vary off )??


Best regards,
-------------------------------------------------------------------
Pedro Reis
e-mail: pedro.reis@valeo.com



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.