Resume Program Execution
resumecommand enables you to resume execution of a program running under the debugger at any line-number hook in any active function in the calling sequence. The
resumecommand, or its alias
goto, can be issued when stopped at any line or return hook. While you cannot issue a
resumecommand when stopped at an entry hook, you may be able to step to the first line hook at the opening brace and then issue
You cannot use
after using the
attn command, but you may be
able to issue
resume after a subsequent
returns control to you.
resume command can
also be used to attempt recovery from the following types of error conditions:
abort, identified by the SIGABRT signal
When you receive one of
the signals listed above with
a program running under the SAS/C
Debugger, you can examine the values of variables, make changes to variables,
and so on. Then, issuing
resume causes the
debugger to discard the signal and resume execution.
The location in your program where execution resumes
depends on the format of the
that you used and where execution of the program stopped. Note that while
you cannot resume a library function or a function compiled with the
option, you can resume a function that called one of these
two types of functions. However, the calling function must be compiled with
Because the effect of the
command is similar to inserting a one-time
in the program, when bypassing code, you must ensure that variables
contain proper values for resumption of execution at the target hook.
Format 1: This format restarts execution at the last line-number hook encountered before the location stopped.
Format 2: This format resumes execution at the first line-number hook encountered in the source line identified by LINENO in the current function.
Format 3: This format resumes execution at the last line-number hook executed in an active function identified by FUNCTION-NAME.
Format 4: This format resumes execution at the first line-number hook in the specified line (LINENO) of the function named by FUNCTION-NAME. The function must be active.
resume prevfunc 34
|Source window prefix||
resumecommand is affected by changes in scope.
Top of Page
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.