IBM OS/2 LAN Server REXX Utility DLL


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


NetMisc(NETERRORLOGCLEAR)


The function clears and optionally saves the error log file of a computer. 
  
Syntax 

MyRc = NetMisc(NETERRORLOGCLEAR, SrvName, save2File)

  
Parameters 
The parameters required and returned are: 
SrvName     The computer name of the server to perform the operation on. 
            If the computer is local use '' as the value for the server 
            name 
save2File   A string assigning a name for an optional backup file. The 
            calling application must have write privileges for the path 
            specified by this parameter. If the path name is relative, it 
            is assumed to be relative to the IBMLAN\LOGS directory 
  
Example   

/* Clear the error log file and make a backup copy of it */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETERRORLOGCLEAR = 640
SrvName          = '\\DOMAIN_CONTRLR'
save2File        = 'ERRORLOG.001'

myRc = NetMisc(NETERRORLOGCLEAR, SrvName, save2File)

if myRc <> '0' then do
 say 'Got error from NetMisc() ' myRc
 exitRc = 9
end
else do
 say 'The operation completed successfully'
 exitRc = 0
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit exitRc

  
Example Output   

The operation completed successfully



Inf-HTML End Run - Successful