Auxiliary SCAN Functions

In this section:

SCAN provides two convenience features: the first displays or executes a previous command; the second substitutes a one-character value for a complete SCAN subcommand.


Top of page

x
Displaying a Previous SCAN Subcommand

To display the last subcommand issued, use the ? subcommand.

To re-execute the previous subcommand, use the AGAIN subcommand. This is particularly useful when finding multiple instances of a field value with LOCATE.


Top of page

x
Preset X or Y to Execute a SCAN Subcommand

To set X (or Y) equal to another SCAN subcommand, type the syntax

{X|Y} subcommand

where:

subcommand

Is a SCAN subcommand.

This gives you an alias for a long, frequently-used subcommand. For example, to substitute Y for a DISPLAY subcommand showing the first and last names of the employee at the current position in the database, type:

Y DISPLAY FN LN

The next time you type Y and press the Enter key, this DISPLAY subcommand is issued.


Information Builders