$ZExtract()

Returns a byte sequence from a given sequence of octets (8-bit bytes).

The format for the $ZEXTRACT function is:

$ZE[XTRACT](expr[,intexpr1[,intexpr2]])

Examples of $ZEXTRACT()

Example:

GTM>Set A="主要雨在西班牙停留在平原" 
        
GTM>For i=0:1:$zlength(A) 
GTM>write !,$zascii($zextract(A,i)),"|"
GTM>

This example displays the numeric byte sequence of the sequence of octets ("主要雨在西班牙停留在平原").