KEY (list of keys)

Top  Previous  Next

 

KEY [ ( scope ) ]

KEY

Displays a list of KEYs.

scope

A symbol containing a FILE. If omitted, the list displays all KEYs in all FILEs.

The KEY type in a #PROMPT statement indicates the prompt's symbol must contain the label of a KEY. A list of available keys from the data dictionary pops up when the #PROMPT is encountered on the Properties screen.

There may be a scope parameter that limits the KEYs available in the list. If scope names a FILE, the list displays all KEYs in the FILE. If there is no scope parameter, the list displays all KEYs in all FILEs.

Example:

#PROMPT('Which Key',KEY(%Primary)),%UseKey