RUNTO command
The RUNTO
command runs your program to a valid executable
statement without setting a breakpoint. You can indicate at which
statement to stop by specifying the statement id or by positioning
the cursor on a statement.
- statement_id
- A valid statement identifier. If you are debugging a disassembled program, specify the statement identifier as an offset in hexadecimal form (X'offset').
Usage notes
- If you indicate a statement by positioning the cursor on the statement, the cursor must be in the Source window and positioned on a line where an executable statement begins.
- If you indicate a statement by positioning the cursor on the statement
and there are multiple statements on the same line, the target of
the
RUNTO
command is the first relative statement on the line. For optimized COBOL programs, the target of the command is the first executable command which was not discarded by the optimizer. - If you indicate a statement by providing a statement id, the statement id must be an executable statement.
- Execution continues until one of the following conditions occurs:
- The location indicated by the cursor position or the statement id is reached.
- A previously set breakpoint is encountered.
- The end of the job is reached.
- For optimized COBOL programs, the
RUNTO
command remains in effect until the statement you indicated is reached. For example, if your program encounters a breakpoint and then you enter theGO
orRUN
command, the program runs until the next breakpoint is encountered or the statement you indicated is reached. - You can use the
RUNTO
command in remote debug mode by entering it in the Debug Console or the Action field, which is in the Optional Parameters section of the Add a Breakpoint task.
Examples
- Run to statement 67, where statement 67 is in a currently active
block.
RUNTO 67;
- Run to the statement 11 in the block
IPLI11A
, whereIPLI11A
is known in the current enclave.RUNTO IPLI11A :> 11
- Run to statement 36, where statement 36 is located in the Source
window.
- Type
RUNTO
in the command line. - Place the cursor on statement 36.
- Press Enter.
- Type
- Run to the statement 74, using a PF key.
- Define a PF key to run to the cursor position.
SET PF13 = RUNTO;
- Place the cursor at the statement 74 and hit shift+PF1 key.
- Define a PF key to run to the cursor position.
Refer to the following topics for more information related to the material discussed in this topic.
- Related references
- RUN command