z/OS File Allocation



The TSO/E Logon JCL Procedure will perform file allocations but these are generic to all Users of the procedure, and hence cannot be relied upon to allocate application files or data sets, but files must be allocated before they can be used, and there are two ways of doing this;

Via JCL

The inclusion of an appropriate DD statement in the JCL. This method will be required if executing via IRXJCL rather than IKJEFT01 (TSO).

Dynamically within REXX

This is achieved via the TSO ALLOCATE (ALLOC) command. This method provides consistency across Batch and Foreground TSO execution.

File Allocation Examples for z/OS Systems.



There is no intention to discuss the TSO ALLOCATE command in detail, as it has all the capabilities of the JCL DD statement. but some of the more common examples are included here.

Copyright © Legac-e Education 2015-