Previous Topic: &ZQUOTE/&ZQUOTE2

Next Topic: &ZSOCINFO


&ZSHRINK

Removes leading and trailing spaces and reduces multiple spaces within a string to one space.

&ZSHRINK text ...  text

&ZSHRINK is a built-in function and must be used to the right of an assignment statement.

&ZSHRINK provides a means of removing spaces from the beginning or end of a string, or removing multiple spaces from within a string.

Operands:

text

The text to be shrunk.

Notes:

The supplied text is returned with spaces removed according to the following rules:

Examples:

&A = &ZSHRINK THIS  IS A TEST . 
sets &A to  THIS IS A TEST.