IDCAMS Verify

IDCAMS Import & Export IDCAMS Delete

Advertisements


VERIFY command is used to verify the status of the dataset when the job terminates abnormally and a VSAM dataset is not closed, the catalog entry for the dataset is flagged to indicate that the dataset may be corrupt.

Before the dataset going to open again, the VERIFY command must be used to identify the end of the dataset and reset the catalog entry.


Syntax:

						
VERIFY  {FILE(ddname[/password])]                                  
   DATASET(entryname[/password])}                                         
                                                      

Verify will verify the cluster and alternate index but the verification of base cluster does not verify its alternate indexes.


Practical Example:


						
//JOB CARD
//*------------------------------------------------------------------
//* IDCAMS – VERIFY
//*------------------------------------------------------------------
//STEP01  EXEC PGM=IDCAMS
//SYSPRINT  DD SYSOUT=*
//INPUT    DD   DSNAME=userid.KSDS.INPUT,DISP=SHR
//SYSIN    DD   *
        LISTCAT   ENTRIES(INPUT) -
                  ALL
        VERIFY    DATASET(INPUT)
        LISTCAT   ENTRIES(INPUT) -
                  ALL
/*
                                               


IDCAMS Import & Export IDCAMS Delete

Advertisements