Why can't I delete a data set which shows to have no users?

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

Question: 

Why can't I delete a data set which shows to have no users?

Answer: 

If you try to delete a data set on the DB.6 screen which shows to have no users on the LDSN,LIST=NOUSERS command output and get the message DSN HAS USERS -- CANNOT DELETE, check the LDSN output for that data set. If there is a non-zero value in the #RQ field of the LDSN output, you cannot delete this data set on the DB.6 screen.

LDSN,DSNBR=DS166
LIST=DSN    DSNBR=DS166                                DATE yy.ddd    PAGE 0001
 
--------------- DATASET NAME ---------------   DSNBR    PPNBR  POSTTM  DSTYPE
     DSORG   RECFM   LRECL  BLKSZ  DEVTYP  J-USE  J-CRT  #RQ   MDATE/TIME MTYPE
 
A.B.C ......................................  00000166  *NONE*  JTERM EXTL,AUTO
                     00000  00000  DASD    00000  00000  0001  09057/1226  DBM

The 0001 under #RQ above means that one job had this data set manually added as a requirement on the CA-7 DATA SET PREDECESSORS (DB.3.1) screen.

Additional Information:

See the CA 7 Database Maintenance Guide for the DB.6 and DB.3.1 screens and the CA 7 Commands Guide for the LDSN command.

As always, please contact CA Technologies support for CA 7 if you have further questions.