Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

I Process Development Process
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 3-49
Accessing Information About a CI Communication
The Most-Recently Completed CI Communication: _LAST^CI^ID
_LAST^CI^ID is a field within the command context space giving the CI involved in the
CI communication terminated by the last _EV^IODONE event. Its type is
_CI^IDPOINTER.
_CI^IDPOINTER (mgr);
INT .EXT cx(command^context^def) = _THREAD^CONTEXT^ADDRESS;
IF _ON (_LAST^EVENTS, _EV^IODONE)
THEN
BEGIN
@mgr := cx._LAST^CI^ID;
IF _CI^LASTERROR (mgr) ! check for errors
THEN ... ;
END;
File System Error: _CI^LASTERROR
_CI^LASTERROR is the type INT file system error of the last CI operation (see
previous example).
Address of CI Reply Buffer: _CI^REPLYADDRESS
_CI^REPLYADDRESS is the type INT(32) extended address of the reply buffer
containing information read from a CI on completion of a _SEND^CI.
Length of CI Reply Buffer: _CI^REPLYLENGTH
_CI^REPLYLENGTH is the type INT length of the reply buffer containing information
read from a CI on completion of a _SEND^CI.
Tag of Last CI Operation: _CI^REPLYTAG
_CI^REPLYTAG is the type INT(32) tag associated with the last CI operation.
fserror := _CI^LASTERROR ( ciid )
replyaddress := _CI^REPLYADDRESS ( ciid )
replylen := _CI^REPLYLENGTH ( ciid )
replytag := _CI^REPLYTAG ( ciid )