Question & Answer
Question
The following error messages can be received when a PDSE data set is deleted. What steps can be performed to successfully delete the data set? IEC614I SCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (043D57D4), volser,dsname OR IEC331I 042-006(043D57D4),jjj,sss,SCRT,IGG0CLH0 IEC331I VOL,ser,NAME,dsname
Cause
These messages indicate that the PDSE data set is in use on another system in the SYSPLEX. A connection to a PDSE directory is established when a program opens a PDSE data set. The connection is dropped when the program closes the data set. A PDSE data set cannot be deleted while there are active connections to its directory.
Answer
The following manuals can be referenced to find the explanation of the errors.
For the IEC331I:
Title: z/OS V1R13.0 MVS System Messages, Vol 7 (IEB-IEE)
Document Number: SA22-7637-24
IEC331I 042-006(043D57D4),jjj, sss,proc[func],mmm VOL,ser,NAME,dsname
IEC331I 042-006(043D57D3),jjj, sss,proc[func],mmm VOL,ser,NAME,dsname
Explanation: An error condition was detected processing a catalog management request directed to either a VSAM or an ICF catalog. See message IDC3009I for an explanation of the return and reason codes.
Title: z/OS V1R12.0 MVS System Messages, Vol 6 (GOS-IEA)
Document Number: SA22-7636-21

For the IEC614I:
Title: z/OS V1R13.0 MVS System Messages, Vol 7 (IEB-IEE)
Document Number: SA22-7637-24
IEC614ISCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (043D57D4), sss,ser, dsname
IEC614ISCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (043D57D3), sss,ser, dsname
Application Programmer Response: If the job step failed, refer to the z/OS DFSMSdfp Diagnosis for an explanation of the failing function's return code, and of the associated diagnostic information
Title: z/OS V1R12.0 DFSMSdfp Diagnosis
Document Number: GY27-7618-13
15.4.4 CDM reason codes
At z/OS 1.13 and higher releases, a console command can be used to display PDSE data set connections.
D SMS,PDSE<1>,CONNECTIONS,DSN(pdsename)<,VOL(volser)>
Here is a sample output from the display.
D SMS,PDSE,CONNECTIONS,DSN(DMONE.PDSE.TEST)
IGW051I PDSE CONNECTIONS Start of Report(SMSPDSE)
---------data set name---------------------- -----vsgt-------
DMONE.PDSE.TEST 01-PDM001-000730
--asid-- --name-- --tcb--- -open-
0035 USER3 009FF070 Input
PDSE CONNECTIONS End of Report(SMSPDSE)
If needed, either of the following slips can be set to capture a dump at the time of the scratch error, which can show the open connections to the PDSE.
SL SET,MSGID=IEC331I,J=jobname,A=SVCD,
SD=(ALLNUC,ALLPSA,LPA,LSQA,SQA,CSA,RGN,TRT,SUMDUMP,GRSQ),
JOBLIST=(*MASTER*,SMSPDSE),END
SL SET,MSGID=IEC614I,J=jobname,A=SVCD,
SD=(ALLNUC,ALLPSA,LPA,LSQA,SQA,CSA,RGN,TRT,SUMDUMP,GRSQ),
JOBLIST=(*MASTER*,SMSPDSE),END
For the IEC331I:
Title: z/OS V1R13.0 MVS System Messages, Vol 7 (IEB-IEE)
Document Number: SA22-7637-24
IEC331I 042-006(043D57D4),jjj, sss,proc[func],mmm VOL,ser,NAME,dsname
IEC331I 042-006(043D57D3),jjj, sss,proc[func],mmm VOL,ser,NAME,dsname
Explanation: An error condition was detected processing a catalog management request directed to either a VSAM or an ICF catalog. See message IDC3009I for an explanation of the return and reason codes.
Title: z/OS V1R12.0 MVS System Messages, Vol 6 (GOS-IEA)
Document Number: SA22-7636-21

For the IEC614I:
Title: z/OS V1R13.0 MVS System Messages, Vol 7 (IEB-IEE)
Document Number: SA22-7637-24
IEC614ISCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (043D57D4), sss,ser, dsname
IEC614ISCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (043D57D3), sss,ser, dsname
Application Programmer Response: If the job step failed, refer to the z/OS DFSMSdfp Diagnosis for an explanation of the failing function's return code, and of the associated diagnostic information
Title: z/OS V1R12.0 DFSMSdfp Diagnosis
Document Number: GY27-7618-13
| Table 61. DADSM SCRATCH Diagnostic Information (Register 0) | ||||
| Byte 0 | Byte 1 | Byte 2 | Byte 3 | Description |
| DADSM Error Code | Subfunction Identifier | Subfunction Return Code | Subfunction Reason Code | |
| X'04' | X'3D' | CDMRSN1 | CDMRSN2 | Invoke CDM to delete a PDSE directory; directory could not be deleted. Use the two rightmost bytes for the CDM reason codes. For explanation, see "CDM reason codes" in topic 15.4.4. |
15.4.4 CDM reason codes
| X'01xx57D3' | Unable to delete the data set because it is connected on this system. |
| X'01xx57D4' | Unable to delete the data set because it is connected on some other system in the Parallel Sysplex®. |
|
D SMS,PDSE<1>,CONNECTIONS,DSN(pdsename)<,VOL(volser)>
Here is a sample output from the display.
D SMS,PDSE,CONNECTIONS,DSN(DMONE.PDSE.TEST)
IGW051I PDSE CONNECTIONS Start of Report(SMSPDSE)
---------data set name---------------------- -----vsgt-------
DMONE.PDSE.TEST 01-PDM001-000730
--asid-- --name-- --tcb--- -open-
0035 USER3 009FF070 Input
PDSE CONNECTIONS End of Report(SMSPDSE)
If needed, either of the following slips can be set to capture a dump at the time of the scratch error, which can show the open connections to the PDSE.
SL SET,MSGID=IEC331I,J=jobname,A=SVCD,
SD=(ALLNUC,ALLPSA,LPA,LSQA,SQA,CSA,RGN,TRT,SUMDUMP,GRSQ),
JOBLIST=(*MASTER*,SMSPDSE),END
SL SET,MSGID=IEC614I,J=jobname,A=SVCD,
SD=(ALLNUC,ALLPSA,LPA,LSQA,SQA,CSA,RGN,TRT,SUMDUMP,GRSQ),
JOBLIST=(*MASTER*,SMSPDSE),END
Related Information
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG90","label":"z\/OS"},"Component":"5695DF115 - DFSMS\/MVS PDSE AND FAMS","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"2.10;2.2, 2.3","Edition":"","Line of Business":{"code":"LOB56","label":"Z HW"}}]
Was this topic helpful?
Document Information
Modified date:
03 September 2021
UID
isg3T1012811