SYSDMG Automatic Macro Variable

Contains a return code that reflects an action taken on a damaged data set.
Type: Automatic macro variable (read and write)
Default: 0

Details

You can use the value of SYSDMG as a condition to determine further action to take.
SYSDMG can contain the following values:
SYSDMG Values and Descriptions
Value
Description
0
No repair of damaged data sets in this session. (Default)
1
One or more automatic repairs of damaged data sets has occurred.
2
One or more user-requested repairs of damaged data sets has occurred.
3
One or more opens failed because the file was damaged.
4
One or more SAS tasks were terminated because of a damaged data set.
5
One or more automatic repairs of damaged data sets has occurred; the last-repaired data set has index file removed, as requested.
6
One or more user requested repairs has occurred; the last-repaired data set has index file removed, as requested.