Examples of $ZGETSYI()

Example 1:

    GTM> WRITE $ZGETSYI("CLUSTER_NODES")
    3
    GTM>
    

This uses $ZGETSYI() to display the number of nodes in the VMS cluster, in this case 3.

Example 2:

    FOR node="MIKE","IKE" D
    .F item="node_swtype","version" W !,$ZGETSYI(item,node)
    QUIT
    

This uses nested FOR loops with $ZGETSYI() to display the operating system type for the nodes "MIKE" and "IKE". Note that because "VERSION" is only available for the local node, the attempt to also show the operating system version displays a blank line, except when the current node is MIKE or IKE.