Examples

This first example builds a simple entry field:

DISPLAY ENTRY-FIELD,  HANDLE IN ENTRY-1.

Since no size information is provided, and no VALUE is specified, this field will be one line high and eight characters wide.

In the next example, the entry field gets its initial contents and determines its width from the VALUE data item:

DISPLAY ENTRY-FIELD,  VALUE DATA-1,
    HANDLE IN ENTRY-1.

Here is the equivalent Screen Section entry, with the addition of the LOWER style:

03 ENTRY-FIELD,  USING DATA-1,  LOWER.

You could also use the word VALUE instead of USING.

This next Screen Section entry describes an entry field that is roughly 10 characters wide on the screen but which can take up to 30 characters via horizontal scrolling:

03 ENTRY-FIELD  USING PIC-X-30-ITEM,
      SIZE 10,  MAX-TEXT = 30.

Here is a Screen Section item (along with the relevant Working-Storage items) that creates a 5-line entry box with a vertical scroll bar:

(Working-Storage)

01 DATA-TABLE-1,  OCCURS 15 TIMES  PIC X(40).

(Screen Section)

03 ENTRY-FIELD,  VALUE MULTIPLE DATA-TABLE-1,
       LINES 5,  SIZE 30,  MAX-LINES = 15,
       VSCROLL-BAR,  NO-AUTOSEL.

The above entry field will be 5 lines tall on the screen, but allow for 15 lines of text. Notice that DATA-TABLE-1 is PIC X(40), while the SIZE of the entry field is 30. This provides extra space in DATA-TABLE-1 to allow for the fact that an entry field of width 30 can hold more than 30 characters on a given line. The NO-AUTOSEL style is not required, but would typically be used for a scrolling, multiple-line field.