0.9b (c) 1995 Peter Childs
The function provides a list of serial device queues on a server.
Syntax
MyRc = NetEnumerate(NETCHARDEVQ, 'charDevQInfo', SrvName)
Parameters
The parameters specified are:
'charDevQInfo' The REXX variable receiving the result. The variable is divided into:
o charDevQInfo.0
The number of serial device queues
o charDevQInfo.i
The serial device queue name entry i, where the variable i has a value from 1 to charDevQInfo.0
SrvName The server computer name
Note
The server computer name can be specified as '' for a local server or computer.
Example
/* List serial device queue names on a server */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETCHARDEVQ = 140 SrvName = '\\DOMAIN_CONTRLR' myRc = NetEnumerate(NETCHARDEVQ, 'charDevQInfo', SrvName) if myRc <> '0' then do say 'Got error from NetEnumerate() ' myRc call DropLsRxutFuncs exit 9 end if charDevQInfo.0 = 0 then do say 'No serial device queues defined' call DropLsRxutFuncs exit 0 end say 'Number of serial device queue names: ' charDevQInfo.0 say do i=1 to charDevQInfo.0 say charDevQInfo.i end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Number of serial device queue names: 1 SRVCOM
Inf-HTML End Run - Successful