DELDE: Logically Deleting a Descriptor

The DELDE function logically deletes a descriptor from a file. A logically deleted descriptor cannot be used as a search descriptor.

graphics/util_adadbs_delde.png

This document covers the following topics:


Essential Parameters

FILE: File Number

FILE specifies the file from which the descriptor is to be logically deleted. Specify a decimal value.

Descriptor: Descriptor Name

DESCRIPTOR identifies the descriptor to be logically deleted. Specify a valid descriptor name.

Optional Parameters

NOUSERABEND: Termination without Abend

When a parameter error or a functional error occurs while this utility function is running, the utility ordinarily prints an error message and terminates with user abend 34 (with a dump) or user abend 35 (without a dump). 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.

Note:
When NOUSERABEND is specified, we recommend that it be specified as the first parameter of the utility function (before all other parameters). This is necessary to ensure that its parameter error processing occurs properly.

PASSWORD: File Password

The password of the file from which the descriptor is to be logically deleted. This parameter is required if the file is password-protected. Specify the password between apostrophes (').

TEST: Test Syntax

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.

Example

The following example logically removes field AA as a descriptor field in file 12 (which requires password XYZPSWD).

ADADBS DELDE FILE=12,DESCRIPTOR=AA,PASSWORD=XYZPSWD