The SAS Grid Manager
Client Utility includes options that enable you to restart SAS programs
from the last successful PROC or DATA step. When the program runs,
it records information about the SAS procedures and DATA steps or
labels in the program and tracks the ones that have been passed during
execution.
If the program fails
and has to be restarted, SAS first executes global statements and
macros. Then, it reads the checkpoint or label library to determine
which checkpoints or labels have been passed. When SAS determines
where the program stopped, execution is resumed from that point. Program
steps that have already successfully completed are not re-executed.
The restart capability
is available on the grid only if you are using the SAS Grid Manager
Client Utility or scheduling grid jobs. It is not available if you
are using other application interfaces to submit work to the grid.
If you use the restart
options, your SAS WORK library must be on shared storage. Using this
capability adds some overhead to your SAS program, so it is not recommended
for every SAS program that you run.
To set up the checkpoint
or label restart capability, use the SAS Grid Manager Client Utility
to submit the SAS program to the grid. Specify either the GRIDRESTARTOK
argument (for checkpoints) or the GRIDLRESTARTOK argument (for labels).
You cannot specify both arguments.
When you use the GRIDRESTARTOK
argument, these options are automatically added to your SAS program:
STEPCHKPT
enables checkpoint
mode and causes SAS to record checkpoint-restart data.
STEPRESTART
enables restart mode,
ensuring that execution resumes at the proper checkpoint.
When you use the GRIDLRESTARTOK
argument, these options are automatically added to your SAS program:
LABELCHKPT
enables checkpoint
mode for labeled code sections.
LABELRESTART
enables restart mode,
ensuring that execution resumes at the proper labeled section.
Other options are automatically
added to control restart mode. See “Checkpoint Mode and Restart
Mode” in
SAS Language Reference: Concepts for
a list of options and their definitions as well as complete information
about enabling checkpoint restart mode in your SAS programs.
If the host that is
running the job becomes unresponsive, the program is automatically
restarted at the last checkpoint.