Use this file- or record-level keyword to specify that your program is to receive control if the workstation user presses the Clear key, and optionally, that the i5/OS™ operating system is to set on the specified response indicator.
See the System/36 environment considerations for display files topic for special considerations when you specify the CLEAR keyword in files that are used in the System/36™ environment.
The format of the keyword is:
CLEAR[(response-indicator ['text'])]
The Clear key is processed like a command attention key (no input data is transmitted from the device). The i5/OS operating system does not clear the display; your program must perform the required function (such as clearing fields or records from the display).
If you do not specify this keyword and the display station user presses the Clear key, the i5/OS program displays a message indicating that it is not valid at that time.
The optional text is included on the printout created at program compilation time to explain the intended use of the indicator. This text has no function in the file or the program other than as a comment. The single quotation marks are required. If you specify more than 50 characters between the single quotation marks, the text is truncated to 50 characters on the program printout.
Option indicators are valid for this keyword.
The following example shows how to specify the CLEAR keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00101A CLEAR(10 'Clear key pressed') A