IBM OS/2 LAN Server REXX Utility DLL


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


NETMESSAGENAME Add


The function registers a name in the message name table.   
Syntax 


MyRc = NetAdd(NETMESSAGENAME, msgName, fwdAction, SrvName)

  
Parameters 
The parameters required are: 
msgName           The message name to add into the name table 
fwdAction         The action to take if name already is forwarded. If the 
                  value is not 0, the name is added to the message name 
                  table; if the value is 0, and the name has been 
                  forwarded already, an error is returned 
                  The default value is 0 
SrvName           The server computer name 
  
Note 
The server computer name can be specified as '' for a local server or 
workstation.   
Example   


/* Add a message name */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETMESSAGENAME = 80
msgName        = 'MSGNAME'
fwdAction      = 0
SrvName        = '\\ANYSRV01'

myRc = NetAdd(NETMESSAGENAME, msgName, fwdAction, SrvName)

if myRc <> '0' then do
 say 'Got error from NetAdd() ' myRc
 exitRc = 9
end
else do
 say 'Message name entry added successfully'
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit exitRc

  
Example Output   


Message name entry added successfully



Inf-HTML End Run - Successful