Specifies the action to take when a SAS data set in a SAS library is detected as damaged.
Valid in: | DATA step and PROC steps |
Category: | Data Set Control |
Default: | For Windows and UNIX, the shipped default is REPAIR for interactive mode and FAIL for batch mode. |
For z/OS, the shipped default is PROMPT for interactive mode and REPAIR for batch mode. |
stops the step and issues an error message to the log immediately. This is the default for batch mode.
stops the step, issues an error message to the log, and terminates the SAS session.
attempts to automatically repair a damaged data set on the next attempt to open the damaged file. The data set might truncate at the point of damage. The REPAIR option re-creates the index or indexes. If the damage is too severe, the auto repair attempt might not be successful.
automatically repairs the data file without the indexes and integrity constraints. The repair also deletes the index file and updates the data file to reflect the disabled indexes and integrity constraints. The repair limits the data file to be opened only in INPUT mode. A warning is written to the SAS log instructing you to execute the PROC DATASETS REBUILD statement to correct or delete the disabled indexes and integrity constraints.
See | DLDMGACTION= System Option in SAS System Options: Reference |
Recovering Disabled Indexes and Integrity Constraints in SAS Language Reference: Concepts |
displays a dialog box that asks you to select the FAIL, ABORT, REPAIR, or NOINDEX action.