03.03.2015 Views

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifying Logical Unit Assignments (LUBS)<br />

When <strong>CA</strong> <strong>Dynam</strong>/D controls the file, logical unit assignments given in the JCL<br />

are checked to ensure that they con<strong>for</strong>m to these rules; they are replaced by<br />

correct ones if they are in error. If no logical unit numbers are given in the<br />

JCL, or if the specified ones are already either assigned to other disks or have<br />

been replaced as described above, then dynamic LUB allocation is invoked.<br />

When a sufficiently long consecutive series of available SYS numbers is found,<br />

it is allocated to the file.<br />

Modifying Logical Unit Assignments (LUBS)<br />

<strong>Dynam</strong>ic LUB Allocation<br />

The <strong>Dynam</strong>ic LUB Allocation facility enables you to define ranges of LUBs <strong>for</strong><br />

use by <strong>CA</strong> <strong>Dynam</strong>/D, whenever an assignment needs to be modified. In order<br />

to use this facility, the COMLUB option record must be defined. For more<br />

in<strong>for</strong>mation about the use of the COMLUB option record, see the Programming<br />

<strong>Guide</strong>.<br />

This facility ensures that disk files will not be cross-assigned. For example, if a<br />

program opens two files simultaneously on separate disk volumes with the<br />

same SYS number, <strong>CA</strong> <strong>Dynam</strong>/D will use the specified logical unit <strong>for</strong> the first<br />

file, and will choose another logical unit <strong>for</strong> the second file from a user-defined<br />

range.<br />

Thus, the two files will have unique SYS numbers pointing to different disk<br />

volumes. This eliminates the danger of cross-assignment.<br />

Defining LUB Ranges<br />

You can define a range of LUB entries <strong>for</strong> <strong>CA</strong> <strong>Dynam</strong>/D to use, or even a series<br />

of LUB entries. For example, you can define ranges SYS030 through SYS039,<br />

SYS050 through SYS052, and SYS058 through SYS070 as available LUB<br />

entries.<br />

<strong>CA</strong> <strong>Dynam</strong>/D uses dynamic LUB allocation to find an available LUB or<br />

programmer logical SYS number. The existence of the COMLUB option record<br />

is checked whenever <strong>CA</strong> <strong>Dynam</strong>/D needs to find an available logical unit to<br />

assign to a disk address.<br />

In the case of multivolume DA files, <strong>CA</strong> <strong>Dynam</strong>/D uses dynamic LUB allocation<br />

to find a consecutive series of available programmer logical SYS numbers long<br />

enough <strong>for</strong> all the volumes used by the file. If you work with this type of file<br />

under <strong>CA</strong> <strong>Dynam</strong>/D control you should be sure that the LUB entry ranges<br />

defined in your COMLUB option record include plenty of room in the <strong>for</strong>m of<br />

consecutive series.<br />

Chapter 4: Disk File Management 4–27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!