![]() ![]() |
|
FOLDThe FOLD function re-delimits a string by replacing spaces with attribute marks at positions defined by a length parameter.
COMMAND SYNTAXFOLD(expression1, expression2)
SYNTAX ELEMENTSexpression1 evaluates a string to be re-delimited.
NOTESThe 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.
EXAMPLESThe following examples show how the FOLD function delimits text based on the length parameter. The underscores represent attribute marks.
|