Version 8.1.4
 —  Utilities  —

ALLOCATE: Allocate File Extent

The ALLOCATE function may be used to allocate an address converter, Data Storage, normal or upper index extent of a specific size. It can also be used to allocate a secondary address converter when spanned records are included in the data. Only one extent may be allocated per ADADBS execution.

graphics/util_adadbs_allocate.png

This document describes the syntax, processing, and parameters of the ADADBS ALLOCATE function.


Essential Parameters

FILE: File for Which an Extent Is Allocated

FILE specifies the number of the file for which the extent is to be allocated.

ACSIZE | AC2SIZE | DSSIZE | NISIZE | UISIZE: Extent Type and Size

These parameters are used to indicate the type and size of the extent to be allocated. One and only one extent type and size can be specified in a single ADADBS ALLOCATE statement. The specified value can be either cylinders or blocks; a size in blocks must be followed by "B" (for example, 2000B).

The extents that can be allocated are:

Note:
If the specified address converter size (ACSIZE or AC2SIZE) would increase the existing address converter beyond the maximum size derived from the ISNSIZE attribute of the file (for ISNSIZE=3: 16,777,215 ISNs; for ISNSIZE=4: 4,294,967,294 ISNs), Adabas will allocate additional address converter blocks only up to that limit.

Top of page

Optional Parameters

DEVICE: Device Type

The device type to be used for file allocation. If none is specified, Adabas chooses one from the available device types with free space in the database.

NOUSERABEND: Termination Without Abend

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).

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.

PASSWORD: File Password

The password of the file. This parameter is required if the file is password-protected.

STARTRABN: Starting RABN for Extent

The beginning RABN of the extent to be allocated. If this parameter is omitted, ADADBS will assign the starting RABN.

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.

Top of page

Example

An address converter extent of 30 blocks is to be allocated for file 15.

ADADBS ALLOCATE FILE=15,ACSIZE=30B 

Top of page