Dynamic Allocation

Introduction Differences from TSO/E Dynamic Allocation
Service Descriptions

Introduction

Dynamic allocation is the system facility that permits data sets to be allocated for use by your program as they are required. When they are no longer needed, your program can request that dynamic allocation routines "unallocate" or free the data sets. In contrast, data sets allocated using JCL DD statements are allocated statically. That is, they are allocated for your program's use possibly well before your program requires them; and they may be held by your program long after the allocations are necessary, resulting in loss of concurrent use.

To eliminate this problem, Shadow REXXTOOLS provides implementations of the ALLOCATE and FREE commands. These commands are implemented under the REXXTOOL host command environment (address REXXTOOL). Like their TSO counterparts, the Shadow REXXTOOLS ALLOCATE and FREE commands are invoked by coding host command expressions in REXX programs. Unlike the TSO commands, the Shadow REXXTOOLS commands are strictly for use under Shadow REXX programs.

Using the Shadow REXXTOOLS ALLOCATE command you can:

Using the Shadow REXXTOOLS FREE command you can:

In addition, the Shadow REXXTOOLS ALLOCATE and FREE commands return extensive diagnostic information to your REXX program, including the text of allocation messages. You may use this information to drive conditional logic in your programs.

Differences from TSO/E Dynamic Allocation

The Shadow REXXTOOLS ALLOCATE command differs from the TSO/E ALLOCATE command in the following respects:

The Shadow REXXTOOLS FREE command differs from the TSO/E FREE command in the following respects:

Service Descriptions

The sections that follow describe the syntax and operation of the Dynamic Allocation commands.

ALLOCATE

FREE


© Copyright 1998 by Open Software Technologies, Inc.