Use this file- or record-level keyword to restrict cursor movement to input capable positions only. This keyword only affects cursor movement caused by using the arrow keys.
This keyword has no parameters.
Care should be taken when defining help when this keyword is in effect. The user may not be able to position the cursor in the area where help is valid.
See the Application Display
Programming
book for more information on the CSRINPONLY keyword.
Option indicators are valid for this keyword.
Example:
The following example shows how to specify the CSRINPONLY keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A CSRINPONLY A R RECORD1 A 1 10'ONE--:' A FIELD1 10A I 1 20TEXT('ONE') A 2 10'TWO--:' A FIELD2 10A I 2 20TEXT('TWO') A 3 10'THREE--:' A FIELD3 10A I 3 20TEXT('THREE') A 4 10'FOUR--:' A FIELD4 10A I 4 20TEXT('FOUR') A 5 10'OUT--:' A FIELD5 10A O 5 20TEXT('OUT') A
This example shows RECORD1 is defined with input, output, and constant fields. Since CSRINPONLY was specified, the user will only be able to position the cursor in either FIELD1, FIELD2, FIELD3, or FIELD4. FIELD5 and all other areas of the display are not accessible by the cursor.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.