IDCAMS: DELETE migrate DS with MASK => RC=0 although Dataset is not deleted
search cancel

IDCAMS: DELETE migrate DS with MASK => RC=0 although Dataset is not deleted

book

Article ID: 262178

calendar_today

Updated On:

Products

DISK BACKUP AND RESTORE

Issue/Introduction

Running the following JCL

//SYSIN DD *
DEFINE NONVSAM -
(NAME(J139731.TEST.MIGRAT.D) -
DEVICETYPES(3390) -
VOLUMES ( -
MIGRAT -
))
DELETE J139731.TEST.MIGRAT.** NONVSAM NOSCRATCH MASK
LISTC ENT(J139731.TEST.MIGRAT.D) ALL

the job finished with RC=00 but the file is not deleted.

Why IDCAMS delete with mask for DS with MIGRAT not work?

DEFINE NONVSAM -
(NAME(J139731.TEST.MIGRAT.D) -
DEVICETYPES(3390) -
VOLUMES ( -
MIGRAT -
))
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0

DELETE J139731.TEST.MIGRAT.** NONVSAM NOSCRATCH MASK
IDC0896I MIGRATED ENTRY J139731.TEST.MIGRAT.B DELETED
IDC0896I MIGRATED ENTRY J139731.TEST.MIGRAT.C DELETED
IDC0896I MIGRATED ENTRY J139731.TEST.MIGRAT.D DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0

LISTC ENT(J139731.TEST.MIGRAT.D) ALL
NONVSAM ------- J139731.TEST.MIGRAT.D
IN-CAT --- CATALOG.USRTSO04.SGTTST0
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2023.047
RELEASE----------------2 EXPIRATION------0000.000
VOLUMES
VOLSER------------MIGRAT DEVTYPE------X'3010200F'
ASSOCIATIONS--------(NULL)
ATTRIBUTES

 

Environment

Release : 14.0

Resolution

Regarding the LISTCAT for this file display that the catalog entry was created by IDCAMS to have MIGRAT as volser and device type of X'3010200F'. 

Disk Backup and Restore processing doesn’t touch this entry because it’s not a DISK Backup and Restore entry. The device type must be x’ C4C9E2D2’  (DISK)  in order for Disk Backup and Restore to  process it.