09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

VERIFYUpgrade a Data Set’s End-of-File In<strong>for</strong>mationIf an improperly closed data set (a data set closed as a result of system error) isopened, the VSAM OPEN routines set a “data set improperly closed” return codeto indicate the data set’s cataloged in<strong>for</strong>mation might not be accurate. When thedata set is closed properly, VSAM CL<strong>OS</strong>E resets the “data set improperly closed”indicator but does not upgrade erroneous catalog in<strong>for</strong>mation that resulted fromthe system error. Subsequently, when the data set is next opened, its end of data(EOD) and end of key range (EOKR) in<strong>for</strong>mation might still be erroneous (untilVERIFY is entered to correct it), but VSAM OPEN sets the “data set openedcorrectly” return code.You can upgrade the EOD and EOKR in<strong>for</strong>mation so that it is accurate when thedata set is next opened by closing the data set and issuing the VERIFY command://VERIFY JOB ...//FIXEOD EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *LISTCAT ENTRIES(TAROUT) -ALLVERIFY DATASET(TAROUT)LISTCAT ENTRIES(TAROUT) -ALL/*The first LISTCAT command lists the data set’s cataloged in<strong>for</strong>mation, showing thedata set’s parameters as they were when the data set was last properly closed.The VERIFY command updates the data set’s cataloged in<strong>for</strong>mation to show thedata set’s real EOD and EOKR values.The second LISTCAT command lists the data set’s cataloged in<strong>for</strong>mation again.This time, the EOD and EOKR in<strong>for</strong>mation shows the point where processingstopped because of system error. This in<strong>for</strong>mation should help you determine howmuch data was added correctly be<strong>for</strong>e the system stopped.VERIFY will update only the high-used RBA fields <strong>for</strong> the data set, not any recordcounts.350 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

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

Saved successfully!

Ooh no, something went wrong!