![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
HP OpenVMS Command Definition, Librarian, and Message Utilities Manual
Severity Directive
Specifies the severity level to be associated with the messages that follow the .SEVERITY directive. Format.SEVERITY level Parameter
QualifiersNone. DescriptionFollowing the .FACILITY directive, the message source file generally contains a .SEVERITY directive. If you do not specify the severity on each message definition with one of the message definition severity qualifiers, you must include a .SEVERITY directive. If you attempt to define a message without specifying a severity level, an error results. Example
Title Directive
Specifies the module name and title text that is to appear at the top of each page of the output listing file. Format.TITLE modname [listing-title] Parameters
QualifiersNone. Example
MESSAGE ExamplesThe following examples demonstrate the use of message files and pointer files. Creating an Executable Image Containing
Message Data The following example illustrates the steps involved in incorporating a message file within an executable image. The message source file, TESTMSG.MSG, created with a text editor, contains the following lines:
You compile the message source file by entering the following command:
You compile the FORTRAN source file by entering the following command:
You link the message object module TESTMSG.OBJ to the FORTRAN object module TEST.OBJ by entering the following command:
You execute the image by entering the following command:
If an error occurs when you execute the program, the system displays the following messages:
Creating an Executable Image Containing
a Pointer The following example demonstrates how to create an executable image that contains a pointer to a nonexecutable message file. You compile the message source COBOLMSG by entering the following command:
You link the object module COBOLMSG.OBJ to create the nonexecutable message file by entering the following command:
You create the pointer object module MESPNTR.OBJ, which contains a pointer to the nonexecutable message file COBOLMF.EXE, by entering the following command:
You link the pointer object module MESPNTR.OBJ to the COBOL program object module COBOLCODE.OBJ by entering the following command:
You execute the program by entering the following command:
The system then displays the messages defined in COBOLMSG.
|