TACL Reference Manual

Statements and Programs
HP NonStop TACL Reference Manual429513-018
5-19
Creating Program Files
REDEFINES z^msgnumber;
BEGIN
CHAR byte(0:1);
END;
PHANDLE z^process^handle;
INT4 z^cputime;
INT z^jobid;
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 byte(0:111);
END;
STRUCT z^termtext
REDEFINES z^data;
BEGIN
CHAR byte(0:111);
END;
STRUCT z^procname^
REDEFINES z^data;
BEGIN
CHAR byte(82:193);
END;
END;
]
If you incur a syntax error while trying to start a process, TACL sets
z^completion^code to 4.
If a process fails to start, TACL sets z^completion^code to 4.
If you successfully start a process, TACL sets z^completion^code to 0.
The field :_completion^procdeath:z^procname:zoffset contains the byte
offset of the process name. The process name will always be within the substructure
z^data, so the offset will always be between 82 and 193.
When a process is named, :_completion^procdeath.z^procname.zlen is
greater than zero.
Otherwise, :_completion^procdeath.z^procname.zlen equals zero and
:_completion^procdeath:z^data contains spaces.