EMS Manual

EMS Procedures
EMS Manual426909-005
15-24
EMSTEXT Procedure
Table 15-5. EMSTEXT Extended Status Codes (page 1 of 2)
Status Description
0 0 Normal return
1 x ALLOCATESEGMENT returned error x because it did not get the private segment
for EMSTEXT
2 x Problem with the template file:
x > 0 A file-management error sent from the OPEN procedure.
x = -1 The file code is not 839 or 844.
x = -2 The file is not a disk file.
x = -3 The file is not key-sequenced.
x = -4 The file has the wrong record size.
x = -5 The file has the wrong primary-key definition.
3 x File-management error x when reading the template file.
4 x event-message-buffer is bad:
x = 0 The first word in the buffer is not -28, or the buffer length is wrong.
x = 1 SSPUT failed to position to front of buffer.
x = 2 EMSGET for ZEMS^TKN^CRTPID failed.
x = 3 EMSGET for ZEMS^TKN^SYSTEM failed.
x = 4 EMSGET for ZEMS^TKN^GENTIME failed.
x = 5 EMSGET for ZEMS^TKN^EVENTNUMBER failed.
x = 6 EMSGET for ZSPI^TKN^SSID failed.
x = 7 EMSGET for ZEMS^TKN^XSYSPID failed with status code other than
ZSPI^ERR^MISTKN (possible only for an EMS event that should contain
the XSYSPID token).
x = 8 EMSGET for ZEMS^TKN^OPSMG failed with status code other than
ZSPI^ERR^MISTKN.
x = 9 EMSGET for ZEMS^TKN^TEXT failed with status code other than
ZSPI^ERR^MISTKN.
x = 10 EMSGET for ZSPI^TKN^DEFAULT^SSID failed.
x = 11 EMSGET failed for a token referenced in the template, with status code
ZSPII^ERR^INVBUF, ZSPI^ERR^NOSPACE, or ZSPI^ERR^XSUMERR.
x = 12 EMSGET or SSPUT of ZSPI^TKN^POSITION failed (trying to save or
restore the position within the buffer).
x = 13 EMSGET for ZEMS^MAP^EXIOADDR failed with status code other than
ZSPI^ERR^MISTKN.
x = 14 EMSGET for ZEMS^TKN^EMPHASIS failed.
5 x File-management error x while reading the nonresident template file for the initial
template