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.

Direct Access File Independence Facility (VCKD)<br />

In general, the number of FBA blocks to allocate <strong>for</strong> each CKD track can be<br />

calculated using the following <strong>for</strong>mula:<br />

(NRPT * KDL) + 4 + (3 * NRPT)<br />

FBABLKS = -----------------------------<br />

KDL<br />

NRPT<br />

512<br />

= key length + data length<br />

rounded high<br />

= number of records per track <strong>for</strong> the disk type and<br />

specified KDL<br />

FBABLKS = number of FBA blocks to allocate per CKD track<br />

Note that the number of allocated FBA blocks on the EXTENT statement<br />

must be an even multiple of the number of FBA blocks that define an<br />

emulated CKD track. There<strong>for</strong>e, 1500 FBA blocks will define 100 CKD<br />

tracks.<br />

For example, on a 3340 device, a record size of 2552 bytes produces three<br />

blocks per track totaling a maximum of 7656 bytes. There<strong>for</strong>e, VCKD will<br />

allocate 15 FBA blocks <strong>for</strong> each CKD track. The allocation is calculated as<br />

follows:<br />

(3 * 2552) + 4 + (3 * 3) 7656 + 4 + 9 7669<br />

------------------------ = ------------ = ---- = 15 (when rounded up)<br />

512 512 512<br />

• Using VCKDANAL<br />

Another method to obtain the number of blocks to allocate <strong>for</strong> each CKD<br />

track is to run the VCKD disk file analyzer program VCKDANAL. This<br />

program will read the first track of your CKD DA file and compute the<br />

required number of FBA blocks to allocate <strong>for</strong> each track. For more<br />

in<strong>for</strong>mation, see VCKDANAL.<br />

Creating FBA Disk Files<br />

You can use any of the following methods to create the new Direct Access file<br />

on the FBA disk:<br />

• Format the FBA disk extent using the VCKD Clear Disk Program<br />

(VCKDCLDK). Then restore the file with a user-written backup/restore<br />

program that utilizes DTFDA LIOCS.<br />

• Restore the file with a user-written program that per<strong>for</strong>ms WRITE RZERO<br />

and WRITE AFTER <strong>for</strong>matting writes.<br />

• Use the VCKD backup/restore program (VCKDBKRS) to copy the CKD file<br />

to tape. Then restore the tape to the FBA disk.<br />

Chapter 6: Controlling File Independence 6–47

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

Saved successfully!

Ooh no, something went wrong!