InterSystems IRIS List Structures
InterSystems IRIS List Structures
You can specify an InterSystems IRIS list structure (%List) to ZWRITE as a variable or an expression. ZWRITE displays a list structure as $lb(element1,element2). This is shown in the following example:
SET FullList = $LISTBUILD("Red","Blue","Green","Yellow")
SET SubList = $LIST(FullList,2,4)
SET StrList = $LISTFROMSTRING("Crimson^Azure^Lime","^")
ZWRITE FullList,SubList,StrList