Strovent SystemsSign in
Reference

ISPF Edit typing overwrites text: Insert key, NULLS ON and full lines

ISPF Edit overwrites text until you press Insert, and Insert needs trailing nulls. Use NULLS ON, Erase EOF or TS to make room on a full line.

A 3270 screen types over existing characters by default. To push text to the right you need insert mode, and insert mode only works when the line has room at its end.

Turn on insert mode

Press the terminal's Insert key. Characters you type now go in at the cursor and the rest of the line moves right. Insert mode is a 3270 terminal function, not an ISPF setting, so it works the same in every input field. Reset turns it off again. On an IBM-style status line (the operator information area) a ^ shows while it is on.

Why Insert still does not work

The terminal can only shift characters into null positions at the end of the field. ISPF normally fills the rest of each line with blanks, which look the same as nulls but count as data. With no nulls left, the terminal refuses the keystroke and locks the keyboard (x3270 shows X Overflow). Press Reset, then make room.

  • Enter NULLS ON on the Command line. ISPF then writes trailing blanks as one blank followed by nulls. NULLS ON ALL makes every trailing blank, and every all-blank line, a null.
  • Or put the cursor after the last character you want to keep and press Erase EOF. That turns the rest of the line into nulls for this screen.
  • Delete also leaves a null at the end of the line for each character it removes.

Nulls are only on the screen. ISPF saves them as blanks, so the data does not change. After you swap between split screens, nulls show as blanks again until you press Enter or a function key.

When the line really is full

If the text reaches the last column you can edit (the right edge of the record or the BNDS setting), there is no room to insert at all.

  • Type I in the line command area to add a new line below, and type the extra text there.
  • For prose, type TS in the line command area, put the cursor where the line should split, and press Enter. The rest of the line moves to a new line with a blank line between. TF later flows the paragraph back together. TF rewraps the whole paragraph, so avoid it in program source.

Sources

Spotted a mistake? Email [email protected].