The FOLD function re-delimits a string by replacing spaces with attribute marks at positions defined by a length parameter.
expression1 evaluates a string to be re-delimited.
The FOLD function creates a number of sub-strings such that the length of each sub-string does not exceed the length value in expression2. Spaces are converted to attribute marks except when in enclosed in sub-strings. Extraneous spaces are removed.
The following examples show how the FOLD function delimits text based on the length parameter. The underscores represent attribute marks.