Cursor Control for Display Files

When the CHECK keyword is used with a cursor control code, it specifies that the cursor is to move from right to left. This feature is designed for languages where information is read right to left.

The OS/400 program does not ensure that right-to-left files are opened only for display stations capable of right-to-left cursor movement. Therefore, all work stations in the same system should be configured with the same language capability and with the same right-to-left capability.

The valid cursor control codes that can be specified for cursor control are:

Cursor Control Code
Meaning

RL
Right-to-left cursor movement within fields

RLTB
Right-to-left, top-to-bottom cursor movement from field to field

The right-to-left capability includes the following restrictions:

A warning message appears for the following conditions:

Option indicators are not valid with cursor control codes.

RL (Right to Left) for Display Files

Use the CHECK(RL) keyword at the file, record, or field level to specify that the cursor should move from right to left within input-capable character fields. At the file level, specifying CHECK(RL) makes the cursor move from right to left in all input-capable character fields in the file. At the record level, specifying CHECK(RL) makes the cursor move from right to left in all input-capable character fields in the record. At the field level, specifying CHECK(RL) makes the cursor move from right to left in only the field with which it is associated.

Figure 117 shows how to specify the CHECK(RL) keyword at the file level.

Figure 117. Specifying the CHECK(RL) Keyword at the File Level

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      CHECK(RL)
00020A          R DSPLY
     A

Figure 118 shows how to specify the RL cursor control with edit check.

Figure 118. Specifying the RL Cursor Control with Edit Check

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A             :
A             :
A          R RECORD1                   CHECK(RL AB)
A             :
A             :
A          R RECORD2
A            INPFLD         4   I  4 10CHECK(RL MF)
A             :
A             :
A
Note:
If you want to specify the RL cursor control code with an edit/check code, you can do so only if the edit/check code is valid at the level you specify. In the example above, CHECK(RL AB) is specified at the record level because AB is valid at that level. CHECK(RL MF) is specified at the field level because MF is valid only at that level.

RLTB (Right to Left, Top to Bottom) for Display Files

Use the CHECK(RLTB) keyword only at the file level. It specifies the direction the cursor is to advance from input-capable field to input-capable field. CHECK(RLTB) specifies that on exiting from a field, the cursor advances by moving from right to left and from top to bottom of the display until it reaches the next input-capable field. You can specify the RLTB cursor control code with only the edit/check code AB, as the others are not valid at the file level.

Note:
Specifying CHECK(RLTB) does not change which input-capable field the cursor is positioned in when the display initially appears.

Figure 119 shows how to specify the CHECK(RLTB) keyword.

Figure 119. Specifying the CHECK(RLTB) Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      CHECK(RLTB)
00020A          R PROMPT
     A