CNTFLD (Continued-Entry Field) keyword
You use this field-level keyword to define a field as a continued-entry field.
Continued-entry fields are sets of associated entry fields that are treated by the workstation controller as a single field during field-data entry and editing. If the display device is not attached to a controller that supports an enhanced interface for nonprogrammable workstations, each segment of the continued entry field is treated separately when editing is performed on the field.
CNTFLD(width of column)
One parameter must be specified.
DBCS considerations
- J
- The width of each continued-entry field segment must be an even number of at least 4 bytes.
- E
- The width of each continued-entry field segment must be an even number of at least 4 bytes.
- O
- The width of each continued-entry field segment must be at least 4 bytes wide.
- G
- The width of each continued-entry field segment must be an even number of at least 4 bytes.
- J or E (with DBCS data)
- Data Length + (Number of segments - 1) * 2
- O
- Data Length + (Number of segments - 1) * 3
- G or E (with SBCS data)
- Data Length
The (Number of segments - 1) * 3 portion of the calculation in the second equation allows for the SO/SI sets that must bracket the DBCS data on the segments of the continued-entry field after the first segment. Additional consideration is made for the possibility that a NULL must be placed at the end of a segment wherever a DBCS character is split.