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:
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.
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
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.
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
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.