To request an SVC dump iIn an authorized program, use an SDUMP or SDUMPX macro. The system writes the dump in a SYS1.DUMPxx data set or, if specified in the macro, in a user-supplied data set.
SDUMPX
If the dump is written to a user-supplied SVC dump data set, the program provides a data control block (DCB) for the data set, opens the DCB before issuing the SDUMP or SDUMPX macro, and closes the DCB after the dump is written. For a synchronous dump, the close should occur when the system returns control to the requester. For a scheduled dump, the close should occur when the ECB is posted or when the SRB is scheduled.
SDUMPX DCB=(3)
See z/OS MVS Programming: Authorized Assembler Services Guide for information about requesting a scheduled SVC dump and a synchronous SVC dump.