Guardian Application Conversion Guide
Creating and Managing a High-PIN Process
Converting TACL Programs
096047 Tandem Computers Incorporated 7–7
Convert your program to reference the :_COMPLETION^PROCDEATH variable
instead of :_COMPLETION to make use of the process deletion message information.
The structure of :_COMPLETION^PROCDEATH is as follows:
[#DEF :_completion^procdeath STRUCT
BEGIN
INT z^msgnumber;
STRUCT z^base
REDEFINES z^msgnumber;
BEGIN
CHAR byte(0:1);
END;
PHANDLE z^phandle;
INT4 z^cputime;
INT z^jobin;
INT z^completion^code;
INT z^termination^code;
INT z^killer^craid
REDEFINES z^termination code;
SSID z^subsystem;
PHANDLE z^killer;
INT z^termtext^len;
STRUCT z^procname;
BEGIN
INT zoffset;
INT zlen;
END;
INT z^flags;
INT z^reserved(0:2);
STRUCT z^data;
BEGIN
CHAR bytes(0:111);
END;
STRUCT z^termtext
REDEFINES z^data;
BEGIN
CHAR bytes(0:111);
END;
STRUCT z^procname^
REDEFINES z^data;
BEGIN
CHAR bytes(82:193);
END;
END;
]
For C-series compatibility, you can continue to use :_COMPLETION. If this variable
exists, then TACL converts each process deletion system message into a C-series-
compatible Stop or Abend message and stores the message in :_COMPLETION. Note,
however, that if the message represents an unnamed high-PIN process, the message
will not fit in :_COMPLETION and TACL fills :_COMPLETION with zeros.