6 The MESSAGE Specification

If a program uses the ADAM message or error systems (MSG or ERR, see SUN/104), then a message text is required. The Message Specification can be used to specify text to be used in preference to text supplied by the program in the call to the MSG or ERR routine. Each of the Message Parameter names used in the program can have a Message Specification in the Interface File. The Message Specification is of the form:

  MESSAGE parametername
    TEXT  string
  ENDMESSAGE

where parametername is a character string specifying the Message Parameter name which is used in the call to an ERR or MSG subroutine. The name must be different from any other Program or Message Parameter name specified for the program.

sting may by anything acceptable to the ERR or MSG routine (i.e. it may include tokens etc.).

If the Message Specification for a given Message Parameter is omitted, the text specified in the MSG or ERR routine will be used.

Example
  MESSAGE APP_OUTMESS
     TEXT ’Calculated value is ^VALUE’
  ENDMESSAGE