Getting Started with TRANSACT (32247-90007)

56 Chapter2
Using Character Mode I/O
Command Mode
The user merely types in the command to be executed. After Transact finishes the
transaction, it prompts for the next command.
The user can cause a command to be iterative by prefacing the command with the special
command REPEAT as in REPEAT DISPLAY, where DISPLAY is one of the commands in
our program.
We can add one additional level of commands to our program, called a subcommand. For
example, we want to have the general facilities to ADD, UPDATE, and DISPLAY in our
program. But within each we want to build specific transactions such as adding customers,
adding part numbers, etc.
These subcommands are identified to Transact by the special character “$”.
Sub-commands must be placed after the command they apply to and are executed by the
user by typing in both the command and subcommand names. The following program and
sample execution demonstrate this.