Retrieve Domino Server Status in CL

The WRKDOMSVR command displays the status of the domino server. Is there a way to retrieve the status in a CL program on the iSeries.

Subject: Retrieve Domino Server Status in CL

You can use the interfaces outlined here: http://www-03.ibm.com/servers/eserver/iseries/domino/devtools/dominoapi/dominoapi.html

And there is a link for a full description of the APIs. However you should be able to cut and paste the code from the sample testsapi.cl CL program at this web page to retrieve the status of a Domino server in a CL program.