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.
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.
To set X (or Y) equal to another SCAN subcommand, type the syntax
{X|Y} subcommand
where:
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 |