TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-150
#EMSINIT Built-In Function
#EMSINIT Built-In Function
Use #EMSINIT to initialize a STRUCT as an event message buffer, preparing it for use
with the other #EMSxxx and #SSxxx built-in functions. This operation gives the buffer
an appropriate header and adds event information to the buffer.
option
is either of these:
SSID ssid
is the subsystem ID of the subsystem to which the subject token belongs. If
omitted or zero (0.0.0), it defaults to the SSID of the subsystem generating the
event.
TIMESTAMP timestamp
is the timestamp, in external representation of four-word Greenwich mean time
format, for the event message. If you omit this parameter, the current time is
used.
buffer-var
is the name of a writable STRUCT to be used as an EMS buffer. #EMSINIT
automatically passes the data length of the STRUCT to the EMSINIT procedure.
Any current contents of the STRUCT are lost.
ssid
is the subsystem ID of the subsystem generating the event.
event-number
is a number, specific to this subsystem, that identifies this event message.
token-id
is the token code of the subject of this event message.
token-value
is the token value in external representation. Its data representation is determined
by the token-type field of token-id.
#EMSINIT [ / option [ , option ] / ] buffer-var ssid
event-number token-id [ token-value ]