TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-151
#EMSINIT Built-In Function
Result
#EMSINIT returns a numeric status code indicating the outcome of the initialization.
The meaning of the code:
Considerations
•
You can omit the token-value parameter if the token length specified by token ID is
zero. Otherwise, the token-value parameter is required.
•
To initialize a buffer and supply event information from a variable, use the
#EMSINITV built-in function.
•
Buffer length larger than ZEMS-VAL-EVT-BUFLEN indicates that the length of the
STRUCT passed as the buffer-var parameter to the #EMSINIT built in exceeds
ZEMS-VAL-EVT-BUFLEN (whose current value is 4024 bytes).
Example
Here is an example of an #EMSINIT call, using the TMF subsystem:
#PUSH ems^err event^num
[#DEF buf STRUCT
BEGIN
INT length;
CHAR text (0:255);
END;
]
#SET event^num 1
#SET ems^err &
[#EMSINIT /SSID/ ZTMF^VAL^SSID TIMESTAMP &
[#JULIANTIMESTAMP 2] &
buf [ZTMF^VAL^SSID] [event^num] ZEMS^CMD^CONTROL]
Code Description
0 No error
-2 Invalid parameter value
-3 Missing parameter
-4 Invalid parameter address
-5 Buffer full
-7 Internal error
-10 Invalid subsystem ID
-12 Insufficient stack space
-30 Buffer length larger than ZEMS-VAL-EVT-BUFLEN