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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Changing File Characteristics<br />

old block size = 800<br />

old record <strong>for</strong>mat = FB<br />

<strong>CA</strong> <strong>Dynam</strong>/FI calculates the new block size as follows:<br />

new block size = 800/80 X 50<br />

−<br />

new block size = 500<br />

Old <strong>for</strong>mat was not fixed, then block size is rounded down to nearest<br />

multiple of record length. (If the block size is less than record length,<br />

record length is used.)<br />

For example, if you specify RECFM=FB and LRECL=80 when:<br />

old record <strong>for</strong>mat = VB<br />

(Record length does not apply <strong>for</strong> variable records.)<br />

old block size = 850<br />

<strong>CA</strong> <strong>Dynam</strong>/FI calculates the new block size as follows:<br />

The block size value of 850 is rounded down to the next even multiple<br />

of the LRECL. Thus, new block size = 800.<br />

• If record <strong>for</strong>mat is to be:<br />

−<br />

−<br />

Variable-unblocked, then block size equals record length + 4 bytes <strong>for</strong><br />

the block descriptor word (BDW)<br />

Variable-blocked and old <strong>for</strong>mat (as defined in the program) is fixed or<br />

undefined, then block size equals old blocking factor (old BLKSIZE<br />

divided by old LRECL) multiplied by new record length + 4 bytes <strong>for</strong><br />

BDW.<br />

For example, if you specify RECFM=VB when:<br />

old logical record length = 80<br />

old block size = 800<br />

old record <strong>for</strong>mat = FB<br />

<strong>CA</strong> <strong>Dynam</strong>/FI calculates the new LRECL to be 84 (going from Fixed to<br />

Variable, new LRECL = old LRECL + 4), and the block size is calculated<br />

as follows:<br />

new block size = 800/80 X 84 + 4<br />

new block size = 10 X 84 + 4<br />

new block size = 844<br />

Chapter 6: Controlling File Independence 6–23

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

Saved successfully!

Ooh no, something went wrong!