$Extract()

Examples of $EXTRACT()

The $EXTRACT function returns a substring of a given string.

The format for the $EXTRACT function is:

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

$EXTRACT() provides a tool for manipulating strings based on character positions.

A SET command argument can have something that has the format of a $EXTRACT() on the left-hand side of its equal sign (=). This construct permits easy maintenance of individual pieces within a string. It can also be used to right justify a value padded with blank characters. For more information on SET $EXTRACT(), refer to SET in the "Commands" chapter.