Use this file- or record-level keyword to specify that the OS/400 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.
Refer to Appendix B, System/36 environment considerations for display files, for information on how to specify the VLDCMDKEY keyword in files that are used in the System/36 environment.
The format of the keyword is:
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 apostrophes are required. If you specify more than 50 characters between the apostrophes, the text is truncated to 50 characters on the program computer printout.
For a command key to be considered valid, you must have activated the key by specifying it with one of the following keywords:
Option indicators are not valid for this keyword.
Example:
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.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.