DLTRUNCHK System Option: z/OS

Enables checking for SAS library truncation.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: File Control: SASFILES
PROC OPTIONS GROUP= SASFILES
Default: DLTRUNCHK
z/OS specifics: All

Syntax

DLTRUNCHK | NODLTRUNCHK

Details

Overview of DLTRUNCHK

The first time a SAS direct access bound library is accessed after it is assigned, SAS compares the external count of library blocks from the z/OS data set label with the count of library blocks maintained by SAS within the library itself. If the external count is less, SAS considers the library to be truncated. How SAS processes a truncated library depends on the setting of the DLTRUNCHK option:
  • If the DLTRUNCHK option is in effect, then SAS issues an error message and does not process the library in any manner. The SAS session return code is 8 or higher.
  • If NODLTRUNCHK is in effect, then SAS issues a warning message. It also allows read access to the library so that its contents can be copied, to the extent possible, to a new library data set. The SAS session return code is 4 or higher.
SAS does not allow write access to a truncated library regardless of the DLTRUNCHK setting.

Usage Notes

  • The setting of the DLTRUNCHK option of the LIBNAME statement takes precedence over the setting of the DLTRUNCHK system option.
  • Depending on the type of damage a library data set has received, recovery of some data from a truncated library might be possible. For assistance with this problem, contact SAS Technical Support.