Designing a program to handle a synchronous dump

With a synchronous dump, MVS™ usually returns control to your program after the capture phase of dump processing completes. If, however, you code DCB=dcb addr to request that MVS use a specific data set for the dump data, MVS returns control after the write phase completes. Your program must then close that data set.