Example 7: Control statements to repair a VSAM LDS data set

The following figure shows example control statements to repair a VSAM extended addressable LDS data set.

Figure 1. Example of repairing a VSAM extended addressable LDS data set
//ZAP      JOB     (installation accounting information)
//RRDSTEP  EXEC    PGM=FABZVZAP                         
//STEPLIB  DD      DSNAME=DBT.SFABLMD0,DISP=SHR         
//SYSLIB   DD      DSNAME=DBT.LDS,DISP=OLD             
//SYSPRINT DD      SYSOUT=A                             
//SYSIN    DD      *                    
    CNV 49152                                         
      VER 2D C1C2C3                                  
      REP 2D D1D2D3     
    CNV X'C000'           
      VER 1C 47F0         
      REP 1C 4780         
    CNV 4294983680    
      VER 8A F1F2F5F6
      REP 8A F9F9F9F9
    CNV X'0100004000'
      VER 10 4770     
      REP 10 4780   
/*                     
//               
  • LDS records can be addressed by CNV control statements.
  • CNV numbers can be expressed in either decimal or hexadecimal and both can exceed 4 GB.