IBM OS/2 LAN Server REXX Utility DLL


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


NETUSER Delete


The function removes an user account from the user account subsystem 
database (UAS), ending all access to the resources in the system.   
Syntax 

MyRc = NetDelete(NETUSER, SrvName, UserId)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
UserId            The userid to be deleted 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   

/* Delete a userid */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETUSER = 280
SrvName = '\\ILIDC'
UserId = 'WS1000'

myRc = NetDelete(NETUSER, SrvName, UserId)

if myRc <> '0' then do
 say 'Got error from NetDelete() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Userid deleted successfully'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

Userid deleted successfully



Inf-HTML End Run - Successful