0.9b (c) 1995 Peter Childs
The function sets the name of the message log file and the current logging status (on or off).
Syntax
MyRc = NetSetInfo(NETMESSAGELOGFILE, 'msgLogFileInfo', SrvName)
Parameters
The parameters specified are:
'msgLogFileInfo' The REXX variable controlling the operation. 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 value specifying whether logging is enabled. If 0, message logging is disabled; otherwise, message logging is enabled. The default is to disable message logging
SrvName The server or requester computer name
Note
The server or requester computer name can be specified as '' for a local server or computer.
Example
/* Set the message log file and logging state */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETMESSAGELOGFILE = 550 SrvName = '\\ANYSRV01' msgLogFileInfo.logswitch = 0 /* turn of logging */ msgLogFileInfo.filename = 'C:\IBMLAN\LOGS\MESSAGES.LOG' myRc = NetSetInfo(NETMESSAGELOGFILE, 'msgLogFileInfo', SrvName) if myRc <> '0' then do say 'Got error from NetSetInfo() ' myRc exitRc = 9 end else do say 'Message log file information changed successfully' end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit exitRc
Example Output
Message log file information changed successfully
Inf-HTML End Run - Successful