HP-UX SNAplus2 CSV Programmer's Guide

Common Service Verbs Reference
LOG_MESSAGE (HP-UX Systems Only)
Chapter 268
There is no SV_PARAMETER_CHECK secondary return code indicating that
the specified message filewas not found or could not be opened; this error
will cause a return code of SV_UNEXPECTED_DOS_ERROR.
Other Conditions Other conditions can result in the following primary
return codes (
primary_rc
):
SV_COMM_SUBSYSTEM_NOT_LOADED
The SNAplus2 software has not been started. Contact
the System Administrator for corrective action.
SV_INVALID_VERB
The
opcode
parameter did not match the operation
code of any verb. No verb executed.
SV_UNEXPECTED_DOS_ERROR
The operating system has encountered an error while
processing the verb. The operating system return code
is returned through the
secondary_rc
. If the problem
persists, consult the System Administrator for
corrective action.
For the meaning of the operating system return code, refer to the file
/usr/include/errno.h.
Creating a Log Message File
The snapmsgf program provided with SNAplus2, enables you to produce
your own message files to be used with the LOG_MESSAGE verb.
To use this facility, you must first create a text file containing the
message numbers and text, and then use snapmsgf to convert it into a
message file.
Message Source File Format
A message source file is a plain ASCII text file. You can include a
comment line anywhere in the file by using an asterisk (*) as the first
character of the line. SNAplus2 ignores all the remaining text on this
line.
The first line in the source file must be “ID:”, followed by a character
string of 1–8 characters identifying the component logging the message.
This string is printed out at the start of each message in the log file.