The UNDELDE function undeletes a logically deleted descriptor. It removes the logically deleted status for the descriptor. Once, UNDELDE has been run for a descriptor, it can be used as a search descriptor.
This document covers the following topics:
FILE specifies the file from which the descriptor was logically deleted. Specify a decimal value.
DESCRIPTOR identifies the descriptor that was logically deleted and needs to be undeleted. Specify a valid descriptor name.
When an error is encountered while the function is running, the utility prints an error message and terminates with user abend 34 (with a dump) or user abend 35 (without a dump). When NOUSERABEND is specified, it must be specified as the first parameter (before all other parameters) for the utility function.
If NOUSERABEND is specified, the utility will not abend after printing the error message. Instead, the message "utility TERMINATED DUE TO ERROR CONDITION" is displayed and the utility terminates with condition code 20.
The password of the file from which the descriptor was logically deleted. This parameter is required if the file is password-protected. Specify the password between apostrophes (').
The TEST parameter tests the operation syntax without actually performing the operation. Only the syntax of the specified parameters can be tested; not the validity of values and variables. See Syntax Checking with the TEST Parameter for more information on using the TEST parameter in ADADBS functions.
The following example undeletes the logically deleted field AA as a descriptor field in file 12 (which requires password XYZPSWD).
ADADBS UNDELDE FILE=12 DESCRIPTOR=AA PASSWORD=XYZPSWD