WRDWRAP (Word Wrap) keyword for display files

Use this file-, record-, or field-level keyword for named fields that are defined such that they overflow onto subsequent display lines or for continued-entry fields.

The keyword causes wrapping to occur at a blank in the data rather than at the end of the data line. It is used to make long text fields easier to read. The default is for data to be wrapped at the end of the physical line or continued-entry field segment.

This keyword can only be specified on fields that have a usage of input-only (I) or input/output (B).

This keyword has no parameters.

You cannot specify the WRDWRAP keyword on the following keyboard shifts:
  • Signed Numeric (S)
  • Numeric Only (Y)
  • Digits Only (D)
  • Numeric Only Character (M)
  • Floating Point (F)
  • DBCS Only (J)
  • DBCS Open (O)
  • DBCS Either (E)
  • Graphic (G)
WRDWRAP cannot be specified with the following keywords:
  • AUTO(RAZ, RAB)
  • CHECK(MF, M10F, M11F, RB, RZ, RL, RLTB)
  • CHGINPDFT(MF)
  • DSPATR(OID, SP)
  • DUP
  • FLTFIXDEC
  • IGCALTTYP

Option indicators are not valid for this keyword.

When WRDWRAP is used, the field length is not increased. Therefore, if too much data is entered the word wrapping effect will be turned off.
Notes:
  1. WRDWRAP is ignored on displays that are not attached to a controller that supports an enhanced interface for nonprogrammable workstations.
  2. WRDWRAP can be specified on a field that is contained on a single row. Although wrapping will not occur, the character insert function of the field will still change.
  3. Subfiles do not support WRDWRAP.

Example

The following example shows how to specify the WRDWRAP keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
     A          R RECORD1
     A            FIELD1       100A  O  1 17
     A            FIELD2       100A  I  4 17WRDWRAP
     A            FIELD3       100A  B  7 17WRDWRAP
     A            FIELD4       100A  B 10 17
     A            FIELD5       100A  O 13 17
     A

In this example, RECORD1 is defined with input, output, and both fields. FIELD2 and FIELD3 will have the benefit of word wrap when the display is attached to a controller that supports an enhanced interface for nonprogrammable workstation. FIELD4 will not have the benefits of word wrap.

Related information
Application Display Programming PDF