IBM OS/2 LAN Server REXX Utility DLL


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


NETGROUP Set Info


The function modifies the comment field of a group definition.   
Syntax 

MyRc = NetSetInfo(NETGROUP, 'PARAMETER', parmValue, SrvName, GroupName)

  
Parameters 
The parameters required are: 
'PARAMETER'       The parameter name of the group definition to be 
                  modified. If the parameter is invalid or the parameter 
                  value is unknown or in error no changes will occour. 
   o comment 
     The group comment 
parmValue         The value of the parameter that is being modified 
SrvName           The server computer name. In this case the computer name 
                  of the domain controller 
GroupName         The name of the group 
  
Note 
The server computer name can be specified as '' for a local domain 
controller.   
Example   

/* Modify a Group comment */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETGROUP  = 70
SrvName   = '\\FSC30DC0'
GroupName = 'ALLGROUP'
grpInfo.comment  = 'The New Group for Department Managers'

myRc = NetSetInfo(NETGROUP, 'comment', grpInfo.comment, SrvName, GroupName)

if myRc <> '0' then do
 say 'Got error from NetSetInfo() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say
 say "Group comment modified successfully"
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

Group comment modified successfully



Inf-HTML End Run - Successful