Please enable JavaScript to view this site.

From version 6.2.87 - This Exit Program can be used to wrap data from the spooled file, or hard coded in the Cobwebb Design, into fewer or more lines in your output depending upon your requirement.

The data passed in PARM1 - 4 has the leading and trailing blanks trimmed and is then concatenated with a single space between each parameter.

The data is then wrapped to the length specified in PARM6 and output back in PARM1 - 5.

If there there is abnormal spacing in your input data i.e more than one space between certain words then all extra spaces will be stripped unless you specify 'Y' in PARM5.

Nothing is currently returned in PARM6 as this has been kept free for future proofing.

Notes:

1.Blank input data in PARM1 - 4 is not included, so no extra spaces generated.

2.If the program finds a word that is greater in length than the "Length to wrap to" then that word is truncated when output.

3.When returning the data, if the result cannot fit in PARM1 - 5 then data left over is discarded.

Parameter

In

Len

Out

Len

PARM1

Data to wrap

132

Wrapped output

132

PARM2

Data to wrap

132

As above

132

PARM3

Data to wrap

132

As above

132

PARM4

Data to wrap

132

As above

132

PARM5

Keep extra blank spaces 'Y' to keep or blank to remove. Default = blank

1

As above

132

PARM6

Length to wrap to. Default = 35 max = 132

3