Issuing a macro for SVC dump

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.

For example, to dump the default contents listed in Contents of SVC dumps to a SYS1.DUMPxx data set, enter the following command:
     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.

As another example, to write a synchronous dump to a data set whose DCB address is in register 3, you would specify the following command:
     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.