Chapter Contents

Previous

Next
BREAK

BREAK



Suspends program execution at an executable statement

Abbreviation: B


Syntax
Details
Examples
See Also

Syntax

BREAK <location <AFTER count> <WHEN clause | DO list>>

location
specifies where to set a breakpoint (the current line, by default):

_ALL_
sets a breakpoint at every executable statement.

ENTRY
sets a breakpoint at the first executable statement in all entries in the application catalog that contain a program.

entry-name\
specifies a catalog entry. A breakpoint is set at the first executable statement in the program in the specified entry. If the entry resides in the current catalog, then entry-name can be a one-level name. If the entry resides in a different catalog, then entry-name must be a four-level name, and the entry must already be loaded into the application's execution stack. A backslash must follow the entry name.

label
specifies a program label. A breakpoint is set at the first executable statement in the program label.

line-num
specifies a line number in an SCL program where a breakpoint is set. The specified line must contain at least one executable SCL statement.

AFTER count
specifies the number of times for the debugger to execute a statement before executing the BREAK command.

Note:   When multiple statements appear on a single line, the debugger treats them as separate statements. That is, the debugger will break on the same line as each statement on that line is executed. In the following example, the line will break three times in line number 10 because the condition is met three times

10 x=1 y=2 z=3
b10 after 3;
  [cautionend]

WHEN clause
specifies an expression that must be true in order for the command to be executed.

DO list
specifies one or more debugger commands to execute. Use semicolons to separate multiple commands.


Details

The BREAK command sets a breakpoint at a specified statement. A breakpoint is an executable SCL program statement at which the debugger suspends program execution. An exclamation mark replaces the line number in the debugger SOURCE window to designate the line at which the breakpoint is established.

When an SCL program detects a breakpoint, it

If a breakpoint is set at a program line that contains more than one statement, then the breakpoint applies to each statement on the source line. If a breakpoint is set at a line that contains a SAS macro expansion, then the debugger breaks at each statement that is generated by the macro expansion.


Examples


See Also

DELETE

EXAMINE

LIST

TRACE

WATCH


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.