TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-139
#EMSADDSUBJECTV Built-In Function
#EMSADDSUBJECTV Built-In Function
Use #EMSADDSUBJECTV to add a subject token to the event message buffer. This
function places binary token values taken from a variable level, preceded by a subject-
mark token, in the buffer.
SSID ssid
is a subsystem ID that qualifies the token code; if omitted or zero (0.0.0), it defaults
to the subsystem ID of the current list or, if the current position is not in a list, to the
subsystem ID specified in the event message header (ZSPI-TKN-SSID).
buffer-var
is the name of a writable STRUCT used as an EMS buffer. #EMSADDSUBJECTV
automatically passes the data length of the STRUCT to the EMSADDSUBJECT
system procedure.
token-id
is the token code or token map of the subject token to be added to the event
message.
source-var
is the name of a variable level, of type STRUCT, from which
#EMSADDSUBJECTV is to obtain binary token values. The contents of the
STRUCT are not altered.
Result
#EMSADDSUBJECTV returns a numeric status code indicating the outcome of the
EMSADDSUBJECT procedure.
The meaning of the status code:
#EMSADDSUBJECTV [ / SSID ssid / ] buffer-var
token-id source-var
Code Condition
0 No error
-1 Invalid buffer format
-2 Invalid parameter value
-3 Missing parameter
-4 Invalid parameter address
-5 Buffer full
-6 Invalid checksum