IBM OS/2 LAN Server REXX Utility DLL


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


NETGROUP Delete


The function deletes a group definition.   
Syntax 


MyRc = NetDelete(NETGROUP, SrvName, GroupName)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
GroupName         The name of the group definition to delete 
  
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

NETGROUP = 70
SrvName  = '\\ILIDC'
GroupName = 'TMPGROUP'

myRc = NetDelete(NETGROUP, SrvName, GroupName)

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

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Group definition deleted successfully



Inf-HTML End Run - Successful