Starting with BTEQ 20.00.00.07, BTEQ has a COMMANDHISTORY command that helps the interactive user to display a numbered list, re-submit an item from the list, and manage the list; of previously entered BTEQ commands and SQL requests, within the same invocation.
The COMMANDHISTORY command is available only when BTEQ is running in interactive mode. Use .HELP COMMANDHISTORY or see the topic COMMANDHISTORY (CH) for more information.