IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


NETMESSAGENAME Enumerate


The function lists the name entries in a message name table.   
Syntax 

MyRc = NetEnumerate(NETMESSAGENAME, 'msgNameInfo')
MyRc = NetEnumerate(NETMESSAGENAME, 'msgNameInfo', SrvName)

  
Parameters 
The parameters specified are: 
'msgNameInfo'     The REXX variable receiving the result. The variable is 
                  divided into: 
   o msgNameInfo.0 
     The number of message name entries 
   o msgNameInfo.i 
     The message name entry i, where the variable i has a value from 1 to 
     msgNameInfo.0 
SrvName           The server computer name 
  
Note 
The server computer name can be specified as '' for a local server or 
requester. 
There call to NetEnumerate with 2 parameters is identical to the call with 
3 parameters where SrvName is set to ''. 
Example   

/* List message names */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETMESSAGENAME = 80
SrvName        = '\\DOMAIN_CONTRLR'

myRc = NetEnumerate(NETMESSAGENAME, 'msgNameInfo', SrvName)

if myRc <> '0' then do
 say 'Got error from NetEnumerate() ' myRc
 call DropLsRxutFuncs
 exit 9
end

if msgNameInfo.0 = 0 then do
 say 'No message name registered'
 call DropLsRxutFuncs
 exit 0
end

say 'Number of message names: ' msgNameInfo.0
say

do i=1 to msgNameInfo.0
 say msgNameInfo.i
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

Number of message names:  1

DOMAIN_CONTRLR



Inf-HTML End Run - Successful