Previous Topic: Work with UDBs

Next Topic: Prepare to Use a UDB

Allocate UDBs

You can allocate UDBs dynamically by using the ALLOCATE command.

Note: For more information about the ALLOCATE command, see the online help.

The UDBs allocated in this manner must be identified to your product as UDBs through use of the UDBCTL command as follows:

UDBCTL OPEN=ddname ID=file_id options
ddname

Specifies the data definition (DD) name of the DD card defining the UDB.

file-id

Specifies a logical file ID. You can specify ID=* to use the same value for both ddname and file_id.

options

Specifies any special processing attributes to apply to this UDB.

Dynamically allocated UDBs can be deallocated (using the DEALLOCATE command) after the UDBCTL command has been used to close them.