VERIFY Examples. IBM z/OS Version 2 Release 3
Annons
Annons
VERIFY
RECORDS INSERTED------
RECORDS UPDATED-------
RECORDS RETRIEVED-----
HI-A-RBA------------
500
0
0
835584
INDEX------SYSPLEX.KSDS0001.INDEX
TOTAL RECORDS--------18
CA RECLAIMS-----------
RECLAIMED-CA REUSES---
0
0
RECORDS UPDATED-------
RECORDS RETRIEVED-----
HI-A-RBA------------
HI-LEVEL-RBA----------
98304
8192
0
0
EXCPS----------------2802
EXTENTS-------------------17
FREE SPACE----------
HI-U-RBA------------
221184
835584
CI SPLITS-------------
CA SPLITS-------------
EXCPS-----------------
EXTENTS--------------------
12
0
2509
2
FREE SPACE----------
HI-U-RBA------------
INDEX LEVELS---------------
24576
73728
2
VERIFY Examples
The VERIFY command can perform the function shown in the following examples.
Upgrade a Data Set's End-of-File Information
If an improperly closed data set (a data set closed as a result of system error) is opened, the VSAM OPEN routines set a “data set improperly closed” return code to indicate the data set's cataloged information might not be accurate. When the data set is closed properly, VSAM CLOSE resets the “data set improperly closed” indicator but does not upgrade erroneous catalog information that resulted from the system error. Subsequently, when the data set is next opened, its end of data
(EOD) and end of key range (EOKR) information might still be erroneous (until
VERIFY is entered to correct it), but VSAM OPEN sets the “data set opened correctly” return code.
You can upgrade the EOD and EOKR information so that it is accurate when the data 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) -
VERIFY
ALL
DATASET(TAROUT)
LISTCAT ENTRIES(TAROUT) -
ALL
/*
The first LISTCAT command lists the data set's cataloged information, showing the data set's parameters as they were when the data set was last properly closed.
The VERIFY command updates the data set's cataloged information to show the data set's real EOD and EOKR values.
The second LISTCAT command lists the data set's cataloged information again.
This time, the EOD and EOKR information shows the point where processing stopped because of system error. This information should help you determine how much data was added correctly before the system stopped.
VERIFY will update only the high-used RBA fields for the data set, not any record counts.
Complete Interrupted VSAM Processing
Issuing the EXAMINE command for a data set that was closed improperly, as a result of a CANCEL, ABEND or system error, can result in a condition code of 8
382
z/OS DFSMS Access Method Services Commands
VERIFY
because of an interrupted VSAM process. You can complete or back out the interrupted VSAM process by adding the RECOVER parameter to the VERIFY command. Then, to check for any remaining errors, use the EXAMINE command for the data set again. This is illustrated in the following example.
//REPRO
//STEP1
JOB ...
EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
EXAMINE NAME(TARIN) INDEXTEST DATATEST
IF LASTCC > 4
THEN DO
VERIFY DATASET(TARIN) RECOVER
EXAMINE NAME(TARIN) INDEXTEST DATATEST
END
IF LASTCC > 4
THEN DO
SET MAXCC = 12
CANCEL
END
REPRO INDATASET(TARIN) OUTDATASET(TAROUT)
/*
The first EXAMINE command checks the index and data structures of the source key-sequenced data set, TARIN. INDEXTEST instructs EXAMINE to check the index structures. DATATEST instructs EXAMINE to check the data structures.
If the first EXAMINE command completes with a condition code greater than 4, the VERIFY command is processed. The RECOVER parameter instructs VSAM to complete or back out interrupted VSAM processing.
The second EXAMINE command checks for any errors that remain after the
VERIFY command.
The SET MAXCC and CANCEL commands terminate the job step with condition code 12 if EXAMINE still detects errors. This prevents the processing of the subsequent REPRO command for a problem data set.
The REPRO command copies all records from the source data set, TARIN, to the target data set, TAROUT.
Chapter 33. VERIFY
383
384
z/OS DFSMS Access Method Services Commands
Ladda ner
Annons