IBM OS/2 LAN Server REXX Utility DLL


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


NETMESSAGELOGFILE Get Info


The function retrieves the name of the message log file and the current 
logging status (on or off).   
Syntax 

MyRc = NetGetInfo(NETMESSAGELOGFILE, 'msgLogFileInfo', SrvName)

  
Parameters 
The parameters specified are: 
'msgLogFileInfo'  The REXX variable receiving the result. The variable is 
                  divided into: 
   o msgLogFileInfo.filename 
     A string containing the complete path and file name, beginning with 
     the drive letter of the message log file 
   o msgLogFileInfo.logswitch 
     A integer specifying whether logging is enabled. If 0, message 
     logging is disabled; otherwise, message logging is enabled 
SrvName           The server computer name 
  
Note 
The server computer name can be specified as '' for a local server or 
computer.   
Example   

/* Get the message log file and logging state */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETMESSAGELOGFILE = 550
SrvName           = '\\ANYSRV01'

myRc = NetGetInfo(NETMESSAGELOGFILE, 'msgLogFileInfo', SrvName)

if myRc <> '0' then do
 say 'Got error from NetGetInfo() ' myRc
 exitRc = 9
end
else do
 say 'Message log file information'
 say
 say 'State ' msgLogFileInfo.logswitch
 say 'File  ' msgLogFileInfo.filename
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit exitRc

  
Example Output   

State  0
File   C:\IBMLAN\LOGS\MESSAGES.LOG



Inf-HTML End Run - Successful