This syntax is illustrated in the following examples. The two messages below are taken from the SNA Server message file; the first is a warning message with no parameters, and the second is a level 16 error message that includes two parameters.
COM0392W: Warning
—User Alert was not accepted by the host COM0429E: Error trying to read from %1 (rc = %2)
The following call:
COM_LOG12(392)""));
gives the following message in the event log:
Warning
—User Alert was not accepted by the host
The following call:
COM_LOG16(429)"%s|%d", cfgfilename, rc));
where cfgfilename = COM.CFG, and rc = 17, gives the following message in the event log:
Error trying to read from COM.CFG, rc = 17
The complete message log entry contains the following information about the error or event and the service that logged it:
Message Number
Date/Time
COM name the name of the service
COM type the type of the service
Severity
Message with optional parameters
The COM name is the name in the service table when the DMOD initializes; this name is the name with which the user logged on to the network operating system and is set by calling sepdcrec. The COM type is set on the call to sbpuinit. See The DL-BASE/DMOD Interface for more information on these functions.