IBM OS/2 LAN Server REXX Utility DLL


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


NETGROUPUSERS Delete


The function deletes a userid from a group definition.   
Syntax 

MyRc = NetDelete(NETGROUPUSERS, SrvName, GroupName, UserId)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
GroupName         The name of the group 
UserId            The userid to delete from a group 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   

/* Delete a group definition */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETGROUPUSERS = 340
SrvName       = '\\ILIDC'
GroupName     = 'THEGROUP'
UserId        = 'WS1000'

myRc = NetDelete(NETGROUPUSERS, SrvName, GroupName, UserId)

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

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

Userid deleted from group successfully



Inf-HTML End Run - Successful