Use this file- or record-level keyword to specify that the i5/OS™ program is to set on the specified response indicator when any valid command key other than the Enter key is pressed by the workstation user.
One use of this function is to perform a simple test to determine if the workstation user has requested a function you want to watch for in your program.
See the System/36 environment considerations for display files topic for information about how to specify the VLDCMDKEY keyword in files that are used in the System/36™ environment.
VLDCMDKEY(response-indicator ['text'])
The response-indicator parameter is required.
The optional text is included on the computer printout created at program compilation to explain the intended use of the indicator. This text's only function in the file or the program is 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 computer printout.
Option indicators are not valid for this keyword.
The following example shows how to specify the VLDCMDKEY keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R REC1 VLDCMDKEY(90 'Any valid key') 00020A CA01(91) 00030A CA02(92) 00040A CA03(93) 00050A CLEAR(94) A
In this example, Indicator 90 is set on if any of four keys (CA01, CA02, CA03, or Clear) is pressed.