A SERVICE OF

logo

206 Chapter 3
Command Deļ¬nitions C-E
DO
Examples
DO PAS Reexecutes the most recent command beginning with the string PAS.
DO 10 Reexecutes command number 10 (absolute) on the command history stack.
DO -2 Reexecutes the second-to-last command on the stack (one command before
the most recent).
DO -2, c/5A/5B Change all occurrences of 5A to 5B in the command preceding the most
recent one before reexecuting it. The default is -1.
do ,c/5A/5B Change all occurrences of 5A to 5B in the most recent command before
reexecuting it.
DO RUN, ">;DEBUG" Append ;DEBUG to the most recent RUN command and then
reexecute it.
DO 'RUN MYP', '>;LIB=G' Find the most recent command beginning with RUN MYP and
append ;LIB=G before reexecuting it.
Related Information
Commands REDO, LISTREDO, WORD evaluator function
Manuals Using the HP 3000 Series 900: Advanced Skills