![]() Chapter Contents |
![]() Previous |
![]() Next |
| Command Directory |
Perform One or More Commands at Specified Locations
o{n}
on HOOK-TYPE
[when (EXPRESSION)] [count N] CMD | {CMD-LIST}
on command
enables you to perform one or more debugger commands at various locations
in your program.
If a when clause is present, a hit is counted only if the when expression is true.
on commands can be nested, as described in the next
section.)
on commands. CMD-LIST is
enclosed by braces.
The following is a list of other points you need to know about the CMD-LIST arguments:
exec command
is used in a CMD-LIST, no other debugger command can occur on the same line
following exec.
break command, then control over the restart of
execution is turned
over to you only after all the other commands in the list are performed.
on command, no commands from the CMD-LIST are
executed. If
any other on commands apply to this hook, they
are not executed. The debugger turns control over to the user.
escape command behaves like
any other command in CMD-LIST.
It is executed in order.
on entry printon main 45 print i, pxyz
-->ai and pxyz -->a
at line 45 of the main function.
on 53 {print i; dump s str}i and dumps the string pointed to by s at line 53 of the current
function.
on (comp23) entry printcomp23 compilation.
on func1 entry {where; print parm1,
parm2};where
command and prints parm1 and parm2 on entry to the func1
function.
on
command has no system dependencies, the behavior of commands used with on can have system dependencies. For example, the behavior
of the escape, system,
and exec commands used as CMD arguments or
as part of CMD-LIST is system-dependent. See escape, exec (CMS),
on, and system (CMS) for
details.
| PROFILE | yes |
| configuration file | no |
| Source window prefix | none |
on command
uses command scope to supply default identifiers, function names, and section
names.
| Successful: request number | |
| Unsuccessful: 0 |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.