Strovent SystemsSign in
Reference

5250 error 0005 "Cursor in protected area of display" and 0024: unlock the keyboard

A four-digit code such as 0005 or 0024 at the bottom of a 5250 screen is an operator error. What 0005 and 0024 mean, and how to clear them with Error Reset.

You start typing on an IBM i screen, the keyboard stops responding, and a four-digit number appears on the bottom line, often 0005. Nothing you type gets through until you clear it.

That number is a 5250 operator error code. The terminal, not the host program, raised it: you pressed a key the current position on the screen does not allow, and the terminal locked the keyboard so the key had no effect.

0005: Cursor in protected area of display

IBM's description: you tried to enter data, but the cursor is not in an input field. Data cannot be entered in a protected area of the display.

It happens when the cursor sits on a label, a heading or output text, for example after you moved it with the arrow keys or by clicking, and then you typed.

Fix: press Error Reset, then move the cursor into an input field (Tab moves to the next one) and type again.

0024: Decimal field; entry not valid

You pressed a key that is not allowed in a numeric field. Only the digits 0 to 9, and Dup if the field allows it, can be typed there.

Fix: press Error Reset and carry on typing digits. For signs and how numeric fields end, see Field Exit, Field+ and Field-.

Where Error Reset is

On a real 5250 keyboard Error Reset is its own key. On a PC keyboard, the emulator maps it to another key, and the mapping differs between emulators, so check yours. IBM notes, for example, that on some HMC 5250 consoles the right Ctrl key is not mapped to Error Reset, and you have to use the Reset item in the emulator's menu instead. In a VT100 session to IBM i it is Ctrl-R. See IBM i VT100 key map: F1–F24, Field Exit, Error Reset, SysReq.

Other codes

There are many more four-digit codes, all with the same pattern: something about the key or the position was not allowed, and Error Reset clears it. IBM lists them in its workstation manuals, such as the 5494 User's Guide. Not to be confused with the HMC's own messages, which show a code and a text, such as 0003 Userid or password not valid.

Sources

Spotted a mistake? Email [email protected].