Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

DSNM Library Services
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 A-69
_LAST^LM
_LAST^LM
_LAST^LM returns the address of the last (most recent) member of a list. If a list is
empty, _NULL is returned.
last-list-member returned value
INT .EXT
is the address of the last member of list.
list input
is the name of a _LIST.
Example
INT .EXT cx(command^context^def) := _THREAD^CONTEXT^ADDRESS;
_LISTPOINTER (outlist) := @cx.OUTPUT.OBJECTLIST;
INT .EXT out^lm (output^lm^def); !Declare extended pointer
!to list member structure
IF _ISNULL (@out^lm := _LAST^LM (outlist))
THEN ... < list empty > ;
@last-list-member := _LAST^LM ( list );