IBM OS/2 LAN Server REXX Utility DLL


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


NETALIAS Delete


The function deletes an alias definition.   
Syntax 


MyRc = NetDelete(NETALIAS, SrvName, AliasName)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
AliasName         The alias name 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   


/* Delete alias definition */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETALIAS = 20
SrvName  = '\\ILIDC'
AliasName = 'THEALIAS'

myRc = NetDelete(NETALIAS, SrvName, AliasName)

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

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Alias deleted successfully



Inf-HTML End Run - Successful