The format of the ZWRITE command is:
ZWR[ITE][:tvexpr] [zwrglvn[,...]]
The optional global or local variable name specifies the variable for ZWRITE to display.
ZWRITE accepts GT.M pattern-match syntax in place of both variable names and subscripts.
ZWRITE <name>(), where <name> is a local or a global is treated as a synonym for ZWRITE <name>.
ZWRITE as applied to local variables and ZSHOW "V" are conceptually similar, with two differences:
GTM>Set C=1,C("Malvern")="Wales",*A=C,*B(-3.14)=C GTM>ZSHow "V" ; ZWRite would produce the same output A=1 ;* A("Malvern")="Wales" *B(-3.14)=A *C=A GTM>ZWRite C ; Only one is name associated with the array on this ZWRite command C=1 ;* C("Malvern")="Wales" GTM>
GTM>ZWRITE B ; B only has a container *B(-3.14)=A GTM>
GTM>Kill *A,*C ; Delete alias variables and associations, leaving only the container GTM>ZWRite $ZWRTAC="" *B(-3.14)=$ZWRTAC1 $ZWRTAC1=3 ;* $ZWRTAC1("Malvern")="Wales" $ZWRTAC="" GTM>
![]() | Caution |
---|---|
FIS strongly recommends that you should not create or manipulate your own $ZWRTACn "variables". They are not part of the supported functionality for implementing alias variables and containers, but are rather a part of the underlying implementation that is visible to you, the GT.M user. FIS can arbitrarily, for its own convenience change the use of $ZWRTAC in GT.M at any time. They are only documented here since you may see them in the output of ZWRITE and ZSHOW "V". |