CRT Status Key 2

The next two bytes of data-name-2 form CRT Status Key 2, and contain a code giving further details of the condition that terminated the ACCEPT operation. Its format and possible values depend on the value in CRT Status Key 1, as shown in the following table.

Table 1. Valid Combinations of CRT STATUS Keys 1 and 2
KEY 1 KEY 2 Meaning
Format Value
0 PIC 99 0 The operator pressed a terminating key
0 PIC 99 1 Auto skip from the last field1
1 PIC 99 1-24 The function key number
9 PIC 99 0 Error condition (no items fall within the screen)
Note: 1 When auto skip from the last field takes place, the value of 1 for CRT STATUS KEY 2 is returned to supported controllers, and the value of 0 is returned to those controllers not supported. This relationship is shown in Table 2.
Table 2. Auto Skip Value Returned by Controller Type
Type of Controller Auto Skip Value of 1 Returned

IBM® i controllers:
   Local workstation controllers
   Remote 5251 model 12
   Remote 5294
   Remote 5394

   Remote 3174
   Remote 3274

Yes
Not applicable
No
Yes, if installed with new workstation
controller code
No, with *NOUNDSPCHR option
No, with *NOUNDSPCHR option
 

PC attachments:
  DOS and Operating System/2® (OS/2)
operating
  environments

No

System to system passthru:
  IBM i system to IBM i system
  System/36™ to IBM i system
  System/38™ to IBM i system

Yes
No
No