TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-154
#EMSTEXT Built-In Function
#EMSTEXT Built-In Function
Use #EMSTEXT to obtain information from an event buffer and make it available in the
function result as printable text derived from the event.
option
is one of these:
INDENT num-chars
specifies the number of characters to indent the second and subsequent lines
of text generated by the EMSTEXT procedure. INDENT 0 means no
indentation. If you omit this option, or specify INDENT -1, EMSTEXT applies its
own default indentation.
INITTEMPLATE struct
This option is reserved for use by the TACL software product.
LINES num-lines
specifies the number of lines in the print buffer. If you omit it, the default is 10
lines.
OPRLOG num
specifies the format of the printable information. If num is not zero, EMSTEXT
searches for OPMSG and TEXT tokens in the event buffer and, if any are
present, formats the printable result similarly to an operator log message. If
none is found, EMSTEXT applies its own default formatting rules.
If you omit this option, or if num is zero, EMSTEXT uses its default formatting
rules in preference to the OPRLOG format.
WIDTH num-chars
is the width of each line in the print buffer. If you omit this option, 80-character
lines are assumed.
buffer-var
is the name of a STRUCT containing an SPI buffer.
Result
#EMSTEXT returns the formatted text from the event buffer.
#EMSTEXT [ / option [ , option ] ... / ] buffer-var