STACK CLEAR clears the contents of each of the stacks listed, so that each stack has no rows. This sets the FocCount variable to zero and FocIndex variable to one for each stack.
The syntax of the STACK CLEAR command is
STACK CLEAR stacklist [;]
Specifies the stacks to be initialized. Stack names are separated by blanks.
Terminates the command. Although the semicolon is optional, including it to allow for flexible syntax and better processing is recommended. For more information about the benefits of including the semicolon, see Terminating Command Syntax.
The following initializes the Emp stack:
STACK CLEAR Emp;
The next example initializes both the Emp and the Dept stacks:
STACK CLEAR Emp Dept;