The output of: // EXEC CAPRARCH DISPLAY ALL,CQUEUE=LST,DATASET=DISK" shows very old entries, but "DISPLAY ALL,CQUEUE=ALL,DATASET=ALL" does not show them.

Document ID : KB000026444
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms:

 

// EXEC CAPRARCH 

DISPLAY ALL,CQUEUE=LST,DATASET=DISK shows very old entries, but "DISPLAY ALL,CQUEUE=ALL,DATASET=ALL" does not show them.

If you request DATASET=ONLINE versus DISK there is no difference !

Trying to delete these entries in batch using CAPRARCH will Result in: 

DELETE 00WEASRA,61170 

CARR915I NO ENTRY (S) FOUND FOR FUNCTION=DELETE <==========

 

Resolution:

 

Step 1:

 // EXEC CAPRARCH,SIZE=100K,PARM='SYS055'

  ARCHIVE LST,ALL,INPUT=DISK,OUTPUT=TAPE 

Step 2:                                           

 execute IDCAMS to Delete/Define the CAIRAPA und CAIRAPD files. 

Step 3:

  // EXEC CAPRARCH,SIZE=512K                   

  INITIALIZE ID=DIRECTORY                   

  INITIALIZE ID=ONLINE                      

  REBUILD TAPE                                

 Step 4:                                          

  // EXEC CAPRARCH,SIZE=512K                   

  ARCHIVE LST,ALL,INPUT=TAPE,OUTPUT=DISK