CA Dynam for VSE User Guide

CA Dynam for VSE User Guide CA Dynam for VSE User Guide

supportcontent.ca.com
from supportcontent.ca.com More from this publisher
03.03.2015 Views

Disk File Maintenance Utilities Examples Assume the Catalog contains a GDS called STOCK with NGEN=3. Assume further that there is a GDS called ALT.STOCK with NGEN=3, and two non-GDS files called NOT.A.GDS and ALSO.NOT.A.GDS. The contents of the backup tape are as follows: STOCK(G#13) STOCK(G#11) NOT.A.GDS STOCK(G#12) Using the REORG command, restore the current version from the tape as a new current version: REORG 'STOCK' CATALOG GDS=NEW CA Dynam Catalog Before: STOCK - NGEN=3 - G#13 -> G#12 -> G#11 After: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 | +------------------ G#13 from backup Note that if (G#14) had already been created, DYNUTIL would issue a message that the requested file was not on the tape, and no processing would take place. Using the REORG command, restore the (G-2) version from the tape as the new current version; in this example (G#14) has already been created, so (G- 2) is (G#12): REORG 'STOCK(G-2)' CATALOG GDS=NEW CA Dynam Catalog Before: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 After: STOCK - NGEN=3 - G#15 -> G#14 -> G#13 | +------------------ G#12 from backup Using the REORG command, restore the (G#11) version from the tape as the new current version: REORG 'STOCK(G#11)' CATALOG GDS=NEW CA Dynam Catalog Before: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 After: STOCK - NGEN=3 - G#15 -> G#14 -> G#13 | +------------------ G#11 from backup 5–34 User Guide

Disk File Maintenance Utilities Using the REORG command, restore the (G#11) version from the tape in its original sequence: REORG 'STOCK(G#11)' CATALOG GDS=ORIGINAL (GDS=ORIGINAL optional) CA Dynam Catalog Before: STOCK - NGEN=3 - G#13 -> G#12 -> G#11 After: STOCK - NGEN=3 - G#13 -> G#12 -> G#11 | +-- G#11 from backup Note that if G#14 had already been created, DYNUTIL would issue a message that the requested target file was no longer current, and no processing would take place. Using the REORG command, restore all versions from the tape in their original sequence: REORG 'STOCK*' CATALOG GDS=ORIGINAL (GDS=ORIGINAL optional) CA Dynam Catalog Before: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 After: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 | | | | | +-- G#12 from backup +---------- G#13 from backup Note that G#14 is not processed because it is not found on the tape, and G#11 is bypassed because it is no longer current. Using the REORG command, restore the (G#12) and (G#13) versions in reversed sequence: REORG 'STOCK(G-1)' CATALOG GDS=REPLACE NEWDSN='*(G-2)' REORG 'STOCK(G-2)' CATALOG GDS=REPLACE NEWDSN='*(G-1)' CA Dynam Catalog Before: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 After: STOCK - NGEN=3 - G#14 -> G#13 -> G#12 | | | | | +-- G#13 from backup +---------- G#12 from backup Note that the REORG commands could not be given in the reverse order unless the tape were closed and reopened between them; DYNUTIL only searches the tape in the forward direction. Chapter 5: Supporting Disk File Management 5–35

Disk File Maintenance Utilities<br />

Examples<br />

Assume the Catalog contains a GDS called STOCK with NGEN=3. Assume<br />

further that there is a GDS called ALT.STOCK with NGEN=3, and two non-GDS<br />

files called NOT.A.GDS and ALSO.NOT.A.GDS. The contents of the backup tape<br />

are as follows:<br />

STOCK(G#13) STOCK(G#11) NOT.A.GDS<br />

STOCK(G#12)<br />

Using the REORG command, restore the current version from the tape as a<br />

new current version:<br />

REORG 'STOCK' <strong>CA</strong>TALOG GDS=NEW<br />

<strong>CA</strong> <strong>Dynam</strong> Catalog<br />

Be<strong>for</strong>e: STOCK - NGEN=3 - G#13 -> G#12 -> G#11<br />

After: STOCK - NGEN=3 - G#14 -> G#13 -> G#12<br />

|<br />

+------------------ G#13 from backup<br />

Note that if (G#14) had already been created, DYNUTIL would issue a<br />

message that the requested file was not on the tape, and no processing would<br />

take place.<br />

Using the REORG command, restore the (G-2) version from the tape as the<br />

new current version; in this example (G#14) has already been created, so (G-<br />

2) is (G#12):<br />

REORG 'STOCK(G-2)' <strong>CA</strong>TALOG GDS=NEW<br />

<strong>CA</strong> <strong>Dynam</strong> Catalog<br />

Be<strong>for</strong>e: STOCK - NGEN=3 - G#14 -> G#13 -> G#12<br />

After: STOCK - NGEN=3 - G#15 -> G#14 -> G#13<br />

|<br />

+------------------ G#12 from backup<br />

Using the REORG command, restore the (G#11) version from the tape as the<br />

new current version:<br />

REORG 'STOCK(G#11)' <strong>CA</strong>TALOG GDS=NEW<br />

<strong>CA</strong> <strong>Dynam</strong> Catalog<br />

Be<strong>for</strong>e: STOCK - NGEN=3 - G#14 -> G#13 -> G#12<br />

After: STOCK - NGEN=3 - G#15 -> G#14 -> G#13<br />

|<br />

+------------------ G#11 from backup<br />

5–34 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!